Skip to content

Commit dfada5f

Browse files
committed
Print audio board ID
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 269e959 commit dfada5f

File tree

1 file changed

+5
-1
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+5
-1
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,11 @@ impl CrosEc {
594594

595595
println!("Input Deck");
596596
println!(" Chassis Closed: {}", !intrusion.currently_open);
597-
println!(" Audio Daughterboard: {}", is_present(audio.is_some()));
597+
println!(" Audio Daughterboard: {}", if let Some(audio) = audio {
598+
format!("{} ({})", is_present(true), audio)
599+
} else {
600+
is_present(false).to_string()
601+
});
598602
println!(" Touchpad: {}", is_present(tp.is_some()));
599603

600604
Ok(())

0 commit comments

Comments
 (0)