fix wording of GPS screen messages to be less confusing. Now:

No GPS
No Sats
GPS OK
This commit is contained in:
geeksville
2020-06-17 17:26:37 -07:00
parent 7678540a93
commit 3005373760
2 changed files with 2 additions and 2 deletions

View File

@@ -335,7 +335,7 @@ void loop()
screen.debug()->setChannelNameStatus(channelSettings.name);
screen.debug()->setPowerStatus(powerStatus);
// TODO(#4): use something based on hdop to show GPS "signal" strength.
screen.debug()->setGPSStatus(gps->hasLock() ? "good" : "bad");
screen.debug()->setGPSStatus(gps->isConnected ? (gps->hasLock() ? "GPS ok" : "No Sats") : "No GPS");
// No GPS lock yet, let the OS put the main CPU in low power mode for 100ms (or until another interrupt comes in)
// i.e. don't just keep spinning in loop as fast as we can.