Skip to content

Commit d788aba

Browse files
Merge pull request #179 from FrameworkComputer/sleep_l
--inputdeck: On FW16 also print sleep_l gpio state
2 parents d767742 + fcb1ba8 commit d788aba

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

EXAMPLES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ Input Deck
234234
Chassis Closed: true
235235
Input Deck State: On
236236
Touchpad present: true
237+
SLEEP# GPIO high: true
237238
Positions:
238239
Pos 0: GenericC
239240
Pos 1: KeyboardA

framework_lib/src/chromium_ec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,11 @@ impl CrosEc {
603603
pub fn print_fw16_inputdeck_status(&self) -> EcResult<()> {
604604
let intrusion = self.get_intrusion_status()?;
605605
let status = self.get_input_deck_status()?;
606+
let sleep_l = self.get_gpio("sleep_l")?;
606607
println!("Chassis Closed: {}", !intrusion.currently_open);
607608
println!("Input Deck State: {:?}", status.state);
608609
println!("Touchpad present: {}", status.touchpad_present);
610+
println!("SLEEP# GPIO high: {}", sleep_l);
609611
println!("Positions:");
610612
println!(" Pos 0: {:?}", status.top_row.pos0);
611613
println!(" Pos 1: {:?}", status.top_row.pos1);

0 commit comments

Comments
 (0)