Show fixed position indicator on screen #866

Show fixed position indicator on screen #866
1.2-legacy
Jm Casler 2021-12-18 15:20:17 -05:00
rodzic e68ca88c9c
commit 0e5a783c5a
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -428,7 +428,10 @@ static void drawGPScoordinates(OLEDDisplay *display, int16_t x, int16_t y, const
auto gpsFormat = radioConfig.preferences.gps_format; auto gpsFormat = radioConfig.preferences.gps_format;
String displayLine = ""; String displayLine = "";
if (!gps->getIsConnected() && !radioConfig.preferences.fixed_position) { if (radioConfig.preferences.fixed_position) {
displayLine = "Fixed GPS";
display->drawString(x + (SCREEN_WIDTH - (display->getStringWidth(displayLine))) / 2, y, displayLine);
} else if (!gps->getIsConnected() && !radioConfig.preferences.fixed_position) {
displayLine = "No GPS Module"; displayLine = "No GPS Module";
display->drawString(x + (SCREEN_WIDTH - (display->getStringWidth(displayLine))) / 2, y, displayLine); display->drawString(x + (SCREEN_WIDTH - (display->getStringWidth(displayLine))) / 2, y, displayLine);
} else if (!gps->getHasLock() && !radioConfig.preferences.fixed_position) { } else if (!gps->getHasLock() && !radioConfig.preferences.fixed_position) {