Merge pull request #8136 from plashchynski/fix_no_gps_double_message

UIRenderer: display "No GPS present" only on the first line to avoid duplication
This commit is contained in:
Ben Meadors 2025-09-27 08:24:00 -05:00 committed by GitHub
commit 667b7c50e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,8 +125,10 @@ void UIRenderer::drawGpsCoordinates(OLEDDisplay *display, int16_t x, int16_t y,
char displayLine[32];
if (!gps->getIsConnected() && !config.position.fixed_position) {
strcpy(displayLine, "No GPS present");
display->drawString(x, y, displayLine);
if (strcmp(mode, "line1") == 0) {
strcpy(displayLine, "No GPS present");
display->drawString(x, y, displayLine);
}
} else if (!gps->getHasLock() && !config.position.fixed_position) {
if (strcmp(mode, "line1") == 0) {
strcpy(displayLine, "No GPS Lock");