display.cpp: do not show SAT if no NMEA data seen

This commit is contained in:
Klaus K Wilting 2019-01-27 21:20:09 +01:00
parent e6aba4fe63
commit 74deb2b95c

View File

@ -156,6 +156,8 @@ void refreshtheDisplay() {
// update GPS status (line 2)
#ifdef HAS_GPS
// have we ever got valid gps data?
if (gps.passedChecksum() > 0) {
u8x8.setCursor(9, 2);
if (!gps.location.isValid()) // if no fix then display Sats value inverse
{
@ -164,6 +166,7 @@ void refreshtheDisplay() {
u8x8.setInverseFont(0);
} else
u8x8.printf("Sats:%.2d", gps.satellites.value());
}
#endif
// update bluetooth counter + LoRa SF (line 3)