sforkowany z mirror/meshtastic-firmware
Fix GPS turned on then off immediately every 2 minutes
rodzic
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;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue