add a quick and dirty test command for headphone state

This commit is contained in:
bunnie 2022-11-15 02:23:13 +08:00
parent 04f700ac29
commit ef5c05683c

View file

@ -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,