bug #376 wip - we now minimize comms to gps to save power
This commit is contained in:
+4
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user