Update src/main.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Arthur Tazhitdinov 2026-01-20 04:45:00 +05:00 committed by GitHub
parent ea5caafc71
commit cdfe057b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,8 @@ void verifyWakeupLongPress() {
delay(10); delay(10);
inputManager.update(); inputManager.update();
} while (inputManager.isPressed(InputManager::BTN_POWER) && inputManager.getHeldTime() < calibratedPressDuration); } 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 { } else {
abort = true; abort = true;
} }