From 485fc7639e456a3e2effa693023bd2023e3640ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 24 Jun 2025 18:01:04 +0200 Subject: [PATCH] fix misc build warnings. NFC --- src/graphics/draw/UIRenderer.cpp | 2 +- src/input/ButtonThread.cpp | 5 +++++ src/modules/SystemCommandsModule.cpp | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/graphics/draw/UIRenderer.cpp b/src/graphics/draw/UIRenderer.cpp index b1d0cddb9..9576120e1 100644 --- a/src/graphics/draw/UIRenderer.cpp +++ b/src/graphics/draw/UIRenderer.cpp @@ -35,7 +35,7 @@ std::string sanitizeString(const std::string &input) inReplacement = false; } else { if (!inReplacement) { - output += '¿'; + output += 0xbf; // ISO-8859-1 for inverted question mark inReplacement = true; } } diff --git a/src/input/ButtonThread.cpp b/src/input/ButtonThread.cpp index bc75e0a54..cab2d9046 100644 --- a/src/input/ButtonThread.cpp +++ b/src/input/ButtonThread.cpp @@ -266,6 +266,11 @@ int32_t ButtonThread::runOnce() break; } + + // doesn't handle BUTTON_EVENT_PRESSED_SCREEN BUTTON_EVENT_TOUCH_LONG_PRESSED BUTTON_EVENT_COMBO_SHORT_LONG + default: { + break; + } } } btnEvent = BUTTON_EVENT_NONE; diff --git a/src/modules/SystemCommandsModule.cpp b/src/modules/SystemCommandsModule.cpp index a6b01d68a..4f775ee81 100644 --- a/src/modules/SystemCommandsModule.cpp +++ b/src/modules/SystemCommandsModule.cpp @@ -113,6 +113,10 @@ int SystemCommandsModule::handleInputEvent(const InputEvent *event) shutdownAtMsec = millis() + DEFAULT_SHUTDOWN_SECONDS * 1000; // runState = CANNED_MESSAGE_RUN_STATE_INACTIVE; return true; + + default: + // No other input events handled here + break; } return false; } \ No newline at end of file