Only save the changed parts of config to disk.

This commit is contained in:
Thomas Göttgens committed 2022-10-04 14:32:07 +02:00
1 parent dc097c7230
commit 3597685b23
7 files changed
+42 -30

No files matched your search

+1 -1
View File
@@ -324,7 +324,7 @@ void setup()
DEBUG_MSG("GPS FactoryReset requested\n");
if (gps->factoryReset()) { // If we don't succeed try again next time
devicestate.did_gps_reset = true;
nodeDB.saveToDisk();
nodeDB.saveToDisk(SEGMENT_DEVICESTATE);
}
}