mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 19:03:52 +00:00
Merge pull request #612 from wfang2002/master
Fix GPS turned on then off immediately every 2 minutes
This commit is contained in:
commit
bd03650140
@ -239,6 +239,7 @@ int32_t GPS::runOnce()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We've been awake too long - force sleep
|
// We've been awake too long - force sleep
|
||||||
|
now = millis();
|
||||||
auto wakeTime = getWakeTime();
|
auto wakeTime = getWakeTime();
|
||||||
bool tooLong = wakeTime != UINT32_MAX && (now - lastWakeStartMsec) > wakeTime;
|
bool tooLong = wakeTime != UINT32_MAX && (now - lastWakeStartMsec) > wakeTime;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user