Skip to content

Commit 96b52e2

Browse files
committed
Also print touchpad board ID
``` > framework_tool --inputdeck Input Deck Chassis Closed: true Audio Daughterboard: Present (10) ADC Value (mV) Ok(1650) Touchpad: Present (9) ADC Value (mV) Ok(1487) ``` Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 7c3ede9 commit 96b52e2

File tree

1 file changed

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

1 file changed

+12
-1
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,18 @@ impl CrosEc {
606606
" ADC Value (mV) {:?}",
607607
self.adc_read(Framework13Adc::AudioBoardId as u8)
608608
);
609-
println!(" Touchpad: {}", is_present(tp.is_some()));
609+
println!(
610+
" Touchpad: {}",
611+
if let Some(tp) = tp {
612+
format!("{} ({})", is_present(true), tp)
613+
} else {
614+
is_present(false).to_string()
615+
}
616+
);
617+
println!(
618+
" ADC Value (mV) {:?}",
619+
self.adc_read(Framework13Adc::TouchpadBoardId as u8)
620+
);
610621

611622
Ok(())
612623
}

0 commit comments

Comments
 (0)