get ttgo building again

This commit is contained in:
geeksville
2020-02-08 07:55:12 -08:00
parent 493d7e33c6
commit 0158fcf352
4 changed files with 39 additions and 39 deletions

View File

@@ -100,7 +100,7 @@ void NodeDB::loadFromDisk()
DEBUG_MSG("Loading saved preferences\n");
pb_istream_t stream = {&readcb, &f, DeviceState_size};
scratch = DeviceState_init_zero;
memset(&scratch, 0, sizeof(scratch));
if (!pb_decode(&stream, DeviceState_fields, &scratch))
{
DEBUG_MSG("Error: can't decode protobuf %s\n", PB_GET_ERROR(&stream));