add air530 gps sleep support

This commit is contained in:
geeksville
2020-09-28 17:04:19 -07:00
parent bc50b39a3b
commit fec7a6bf17
10 changed files with 176 additions and 58 deletions

View File

@@ -183,11 +183,11 @@ void UBloxGPS::doTask()
if ((fixtype >= 3 && fixtype <= 4) && ublox.getP(maxWait)) // rd fixes only
{
if (hasValidLocation) {
wantNewLocation = false;
setWantLocation(false);
// ublox.powerOff();
}
} else // we didn't get a location update, go back to sleep and hope the characters show up
wantNewLocation = true;
setWantLocation(true);
// Notify any status instances that are observing us
const meshtastic::GPSStatus status =