Skip to content

Commit

Permalink
add a quick and dirty test command for headphone state
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 14, 2022
1 parent 04f700a commit ef5c056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/shellchat/src/cmds/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ impl<'a> ShellCmdApi<'a> for Test {
Err(e) => log::error!("couldn't get input: {:?}", e),
}
}
"hpstate" => {
write!(ret, "HP state: {:?}", self.codec.poll_headphone_state()).ok();
}
"ecup" => {
let ecup_conn = env.xns.request_connection_blocking("__ECUP server__").unwrap();
xous::send_message(ecup_conn,
Expand Down

0 comments on commit ef5c056

Please sign in to comment.