Skip to content

Commit 74245be

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 <dhs@frame.work>
1 parent 6547762 commit 74245be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • framework_lib/src/chromium_ec

framework_lib/src/chromium_ec/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,12 @@ impl CrosEc {
15081508
return Err(err);
15091509
}
15101510
};
1511+
1512+
// Need to explicitly handle CTRL-C termination on UEFI Shell
1513+
#[cfg(feature = "uefi")]
1514+
if shell_get_execution_break_flag() {
1515+
return Ok(console);
1516+
}
15111517
}
15121518
}
15131519

0 commit comments

Comments
 (0)