Fix GPS turned on then off immediately every 2 minutes

1.2-legacy
Wei Fang 2020-12-30 21:11:03 -08:00
rodzic abb52e5446
commit f6336855d0
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -239,6 +239,7 @@ int32_t GPS::runOnce()
}
// We've been awake too long - force sleep
now = millis();
auto wakeTime = getWakeTime();
bool tooLong = wakeTime != UINT32_MAX && (now - lastWakeStartMsec) > wakeTime;