Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading