From 05ca3c3d562c8856378fdd58e2a1243cc90edf24 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 17 Oct 2020 08:44:04 +0800 Subject: [PATCH] Update to work with my font size change --- src/graphics/Screen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index b361505d..a97e04b9 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -1100,8 +1100,9 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat #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"); + display->drawString(x + SCREEN_WIDTH - display->getStringWidth("CPU " + String(getCpuFrequencyMhz()) + "MHz"), + y + FONT_HEIGHT_SMALL * 1, + "CPU " + String(getCpuFrequencyMhz()) + "MHz"); #endif // Line 3