From cdfe057b2987f809fede54e1900afded661e4a62 Mon Sep 17 00:00:00 2001 From: Arthur Tazhitdinov Date: Tue, 20 Jan 2026 04:45:00 +0500 Subject: [PATCH] Update src/main.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index edee5ce5..ceef3f1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -174,7 +174,8 @@ void verifyWakeupLongPress() { delay(10); inputManager.update(); } while (inputManager.isPressed(InputManager::BTN_POWER) && inputManager.getHeldTime() < calibratedPressDuration); - abort = false; + // Abort wakeup if the button was released before the required press duration + abort = (inputManager.getHeldTime() < calibratedPressDuration); } else { abort = true; }