mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Update src/main.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ea5caafc71
commit
cdfe057b29
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user