From 53d096b58eebad97bfbe0c7e1c7b39bb4617bdb9 Mon Sep 17 00:00:00 2001 From: code8buster Date: Mon, 23 Jan 2023 06:27:09 -0500 Subject: [PATCH] Disable the GPS thread after factory reset has been requested --- src/gps/GPS.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 6e05ca281..4368bc3a7 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -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. } } }