diff --git a/src/state_machine.rs b/src/state_machine.rs index 03268ee..b1c3911 100644 --- a/src/state_machine.rs +++ b/src/state_machine.rs @@ -1162,7 +1162,7 @@ pub fn start( // Detect short press of power button // Short press (or ESC) will exit and boot (skip all further checks) - let short_press = (!button_pressed && state.prev_pressed && long_press == 1) + let short_press = (!button_pressed && state.prev_pressed) || state.keypress == Some(Key::Special(ScanCode::ESCAPE)); match (short_press, state.frame.clone()) { // Reboot