Disable the GPS thread after factory reset has been requested

wio-e5
code8buster 2023-01-23 06:27:09 -05:00
rodzic 4da1fb8e27
commit 53d096b58e
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -439,8 +439,7 @@ int32_t GPS::runOnce()
LOG_DEBUG("GPS is not communicating, trying factory reset on next bootup.\n");
devicestate.did_gps_reset = false;
nodeDB.saveDeviceStateToDisk();
notifyGPSSleep.notifyObservers(NULL);
forceWake(false);
disable(); // Stop the GPS thread as it can do nothing useful until next reboot.
}
}
}