From d39cc3d57bf99b68aaf7e713620ccea9c33fbf78 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sat, 10 Oct 2020 22:06:56 -0700 Subject: [PATCH] Checking if ESP32 for the frequency display --- src/graphics/Screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 284962015..2fcb99b9d 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1026,9 +1026,11 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat String(days) + "d " + (hours < 10 ? "0" : "") + String(hours) + ":" + (minutes < 10 ? "0" : "") + String(minutes) + ":" + (seconds < 10 ? "0" : "") + String(seconds)); +#ifndef NO_ESP32 // Show CPU Frequency. display->drawString(x + SCREEN_WIDTH - display->getStringWidth("CPU " + String(getCpuFrequencyMhz()) + "MHz"), y + FONT_HEIGHT * 1, "CPU " + String(getCpuFrequencyMhz()) + "MHz"); +#endif // Line 3 drawGPSAltitude(display, x, y + FONT_HEIGHT * 2, gpsStatus);