From b807b51f1f0b8d44d3f46c84f98d8fcbd0faf0da Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 15 Aug 2026 22:29:44 +0200 Subject: [PATCH] Fix header not reappearing after menu exit --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 87396ec..2088a8d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -344,7 +344,7 @@ void drawHeader() { tft.setTextColor(TFT_WHITE, TFT_BLACK); tft.setTextSize(1); tft.setCursor(6, 10); - tft.println("Leos FR"); + tft.println("Leos Radar"); drawMenuButton(); updateWifiIcon(); drawWeatherIcon(); @@ -685,10 +685,8 @@ void loop() { } if (tapped) { - if (menuBtn.contains(tap.x, tap.y)) { +if (menuBtn.contains(tap.x, tap.y)) { MenuScreen::run(tft); - drawHeader(); - updateStatusLine(); forceRedraw = true; } else if (weatherIconRect.contains(tap.x, tap.y)) { showWeatherInfo(tft); @@ -716,8 +714,10 @@ void loop() { uint32_t currentVersion = AircraftTable::version(); if (forceRedraw || currentVersion != lastRenderedVersion) { lastRenderedVersion = currentVersion; - forceRedraw = false; +forceRedraw = false; RadarScreen::render(tft, CONTENT_TOP); + drawHeader(); + updateStatusLine(); lastSweepMs = millis(); } }