Put GPS thread to sleep post factory reset request

This commit is contained in:
code8buster 2023-01-21 07:15:41 -05:00
parent 54b4b67e5c
commit fdc47728af

View File

@ -438,6 +438,8 @@ int32_t GPS::runOnce()
LOG_DEBUG("GPS is not communicating, trying factory reset on next bootup.\n");
devicestate.did_gps_reset = false;
nodeDB.saveDeviceStateToDisk();
prepareDeepSleep();
forceWake(false);
}
}
}