Skip to content

Commit 0c13688

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 <dhs@frame.work>
1 parent 2c4a835 commit 0c13688

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,12 @@ impl CrosEc {
600600
is_present(false).to_string()
601601
});
602602
println!(" ADC Value (mV) {:?}", self.adc_read(Framework13Adc::AudioBoardId as u8));
603-
println!(" Touchpad: {}", is_present(tp.is_some()));
603+
println!(" Touchpad: {}", if let Some(tp) = tp {
604+
format!("{} ({})", is_present(true), tp)
605+
} else {
606+
is_present(false).to_string()
607+
});
608+
println!(" ADC Value (mV) {:?}", self.adc_read(Framework13Adc::TouchpadBoardId as u8));
604609

605610
Ok(())
606611
}

0 commit comments

Comments
 (0)