Only save devicestate on GPS reset (#1587)

This commit is contained in:
Ben Meadors
2022-08-03 07:16:41 -05:00
committed by GitHub
parent fab20f5acf
commit 874d308b50
3 changed files with 12 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ int32_t GPS::runOnce()
if(devicestate.did_gps_reset && (millis() > 60000) && !hasFlow()) {
DEBUG_MSG("GPS is not communicating, trying factory reset on next bootup.\n");
devicestate.did_gps_reset = false;
nodeDB.saveToDisk();
nodeDB.saveDeviceStateToDisk();
}
#endif
}