Skip to content

Commit 7805797

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

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ impl CrosEc {
594594

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

0 commit comments

Comments
 (0)