mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-30 00:19:54 +00:00
Disable the GPS thread after factory reset has been requested
This commit is contained in:
parent
4da1fb8e27
commit
53d096b58e
@ -439,8 +439,7 @@ int32_t GPS::runOnce()
|
|||||||
LOG_DEBUG("GPS is not communicating, trying factory reset on next bootup.\n");
|
LOG_DEBUG("GPS is not communicating, trying factory reset on next bootup.\n");
|
||||||
devicestate.did_gps_reset = false;
|
devicestate.did_gps_reset = false;
|
||||||
nodeDB.saveDeviceStateToDisk();
|
nodeDB.saveDeviceStateToDisk();
|
||||||
notifyGPSSleep.notifyObservers(NULL);
|
disable(); // Stop the GPS thread as it can do nothing useful until next reboot.
|
||||||
forceWake(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user