mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Label the satelite number to avoid confusion
This commit is contained in:
parent
e7c3009247
commit
5894a99338
@ -54,12 +54,9 @@ void drawGps(OLEDDisplay *display, int16_t x, int16_t y, const meshtastic::GPSSt
|
|||||||
display->drawString(x + 12, y - 3, (SCREEN_WIDTH > 128) ? "GPS: No Sats" : "No Sats");
|
display->drawString(x + 12, y - 3, (SCREEN_WIDTH > 128) ? "GPS: No Sats" : "No Sats");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
char satsString[3];
|
char satsString[8];
|
||||||
snprintf(satsString, sizeof(satsString), "%u", gps->getNumSatellites());
|
snprintf(satsString, sizeof(satsString), "%u sats", gps->getNumSatellites());
|
||||||
int textX = x + 12;
|
display->drawString(x + 12, y - 2, satsString);
|
||||||
display->drawString(textX, y - 2, satsString);
|
|
||||||
if (config.display.heading_bold)
|
|
||||||
display->drawString(textX + 1, y - 2, satsString);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user