Label the satelite number to avoid confusion

This commit is contained in:
Jason P 2025-06-04 16:51:37 -05:00
parent e7c3009247
commit 5894a99338

View File

@ -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);
} }
} }