Skip to content

Commit 8414b7e

Browse files
committed
--inputdeck: Add laptop13 example output
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 1ff9ff7 commit 8414b7e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

EXAMPLES.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,12 @@ Input Deck
363363
> framework_tool --inputdeck
364364
Input Deck
365365
Chassis Closed: true
366-
Audio Daughterboard: Present
367-
Touchpad: Present
366+
Audio Daughterboard: Present (7)
367+
ADC Value 1056mV
368+
Touchpad: Present (7)
369+
ADC Value 1042mV
370+
Deck State: On
371+
Touchpad present: true
368372
```
369373

370374
### On Framework 16

framework_lib/src/chromium_ec/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,11 +710,6 @@ impl CrosEc {
710710
println!("Input Deck");
711711
println!(" Chassis Closed: {}", !intrusion.currently_open);
712712

713-
if let Ok(status) = self.get_input_deck_status() {
714-
println!(" Deck State: {:?}", status.state);
715-
println!(" Touchpad present: {}", status.touchpad_present);
716-
}
717-
718713
println!(
719714
" Audio Daughterboard: {}",
720715
if let Some(audio) = audio {
@@ -738,6 +733,11 @@ impl CrosEc {
738733
println!(" ADC Value {:04}mV", adc);
739734
}
740735

736+
if let Ok(status) = self.get_input_deck_status() {
737+
println!(" Deck State: {:?}", status.state);
738+
println!(" Touchpad present: {}", status.touchpad_present);
739+
}
740+
741741
Ok(())
742742
}
743743

0 commit comments

Comments
 (0)