Fix devicestate persistence bug

This commit is contained in:
Ben Meadors
2024-03-19 10:31:31 -05:00
parent a6625998f5
commit 4fa7f5a748
2 changed files with 2 additions and 1 deletions

View File

@@ -649,6 +649,7 @@ void NodeDB::saveDeviceStateToDisk()
#ifdef FSCom
FSCom.mkdir("/prefs");
#endif
saveProto(prefFileName, meshtastic_DeviceState_size, &meshtastic_DeviceState_msg, &devicestate);
}
void NodeDB::saveToDisk(int saveWhat)