From 64895cc7eb891fd938d4a4ce91b15d704071fcfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 3 Jan 2023 19:21:11 +0100 Subject: [PATCH] remove Merge duplication --- src/graphics/Screen.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index cfa30a21b..53ca75a51 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -545,23 +545,6 @@ static void drawGPSpowerstat(OLEDDisplay *display, int16_t x, int16_t y, const G #endif } -//Draw status when gps is disabled by PMU -static void drawGPSpowerstat(OLEDDisplay *display, int16_t x, int16_t y, const GPSStatus *gps) -{ -#ifdef HAS_PMU - String displayLine = "GPS disabled"; - int16_t xPos = display->getStringWidth(displayLine); - - if (!config.position.gps_enabled){ - display->drawString(x + xPos, y, displayLine); -#ifdef GPS_POWER_TOGGLE - display->drawString(x + xPos, y - 2 + FONT_HEIGHT_SMALL, " by button"); -#endif - //display->drawString(x + xPos, y + 2, displayLine); - } -#endif -} - static void drawGPSAltitude(OLEDDisplay *display, int16_t x, int16_t y, const GPSStatus *gps) { String displayLine = "";