mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-11 07:39:10 +00:00
Fix GPS turned on then off immediately every 2 minutes
This commit is contained in:
parent
abb52e5446
commit
f6336855d0
@ -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