mirror of
https://github.com/meshtastic/firmware.git
synced 2026-04-04 15:33:38 -04:00
get ttgo building again
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user