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
9 changes: 2 additions & 7 deletions framework_lib/src/commandline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,19 +570,14 @@ fn flash_ec(ec: &CrosEc, ec_bin_path: &str, flash_type: EcFlashType) {
let data = crate::uefi::fs::shell_read_file(ec_bin_path);
#[cfg(not(feature = "uefi"))]
let data: Option<Vec<u8>> = {
let _data = match fs::read(ec_bin_path) {
match fs::read(ec_bin_path) {
Ok(data) => Some(data),
// TODO: Perhaps a more user-friendly error
Err(e) => {
println!("Error {:?}", e);
None
}
};

// EC communication from OS is not stable enough yet,
// it can't be trusted to reliably flash the EC without risk of damage.
println!("Sorry, flashing EC from the OS is not supported yet.");
None
}
};

if let Some(data) = data {
Expand Down
Loading