ask for factory reset if GPS does not talk to us.

This commit is contained in:
Thomas Göttgens
2022-05-18 18:06:53 +02:00
parent 44159f75f1
commit 7f9c07ae37
4 changed files with 30 additions and 1 deletions
+1
View File
@@ -567,6 +567,7 @@ void setup()
// ONCE we will factory reset the GPS for bug #327
if (gps && !devicestate.did_gps_reset) {
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();