bug #376 wip - we now minimize comms to gps to save power

This commit is contained in:
Kevin Hester
2020-10-06 06:07:30 +08:00
parent 736642455f
commit f6861a8fe2
5 changed files with 25 additions and 17 deletions
+4 -1
View File
@@ -209,7 +209,10 @@ void GPS::loop()
// While we are awake
if (isAwake) {
// DEBUG_MSG("looking for location\n");
whileActive();
if ((now - lastWhileActiveMsec) > 1000) {
lastWhileActiveMsec = now;
whileActive();
}
// If we've already set time from the GPS, no need to ask the GPS
bool gotTime = timeSetFromGPS || lookForTime();