Skip to content

Commit

Permalink
fixup! SFT-3538: Add foundation-firmware crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandudey committed May 14, 2024
1 parent fe0a795 commit 39e48e5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions firmware/src/bin/foundation-firmware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ fn main() -> Result<()> {

println!("Firmware:");
println!(
"{:>17}: {:#08X} ({}) ", "Magic",
"{:>17}: {:#08X} ({}) ",
"Magic",
header.information.magic,
if header.information.magic == Information::MAGIC_COLOR {
"color"
Expand All @@ -70,11 +71,13 @@ fn main() -> Result<()> {
println!("{:>17}: {}", "File Hash", file_hash);
println!("{:>17}: {}", "Build Hash", build_hash);
println!(
"{:>17}: {}", "Validation Hash",
"{:>17}: {}",
"Validation Hash",
hex::encode(validation_hash.to_byte_array())
);
println!(
"{:>17}: {}", "Single Hash",
"{:>17}: {}",
"Single Hash",
hex::encode(single_hash.to_byte_array())
);
println!();
Expand Down

0 comments on commit 39e48e5

Please sign in to comment.