Skip to content

Commit e2cc029

Browse files
committed
uefi: Handle break in --console recent
Otherwise if you run `framework_tool.efi --console recent -b` and then stop at one of the screens, the app never exits. Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 526ba80 commit e2cc029

File tree

1 file changed

+6
-0
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+6
-0
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,12 @@ impl CrosEc {
11021102
return Err(err);
11031103
}
11041104
};
1105+
1106+
// Need to explicitly handle CTRL-C termination on UEFI Shell
1107+
#[cfg(feature = "uefi")]
1108+
if shell_get_execution_break_flag() {
1109+
return Ok(console);
1110+
}
11051111
}
11061112
}
11071113

0 commit comments

Comments
 (0)