Skip to content

Commit 1a07179

Browse files
committed
Print audio board ID
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent aa515f2 commit 1a07179

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,14 @@ 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!(
598+
" Audio Daughterboard: {}",
599+
if let Some(audio) = audio {
600+
format!("{} ({})", is_present(true), audio)
601+
} else {
602+
is_present(false).to_string()
603+
}
604+
);
598605
println!(" Touchpad: {}", is_present(tp.is_some()));
599606

600607
Ok(())

0 commit comments

Comments
 (0)