make testing a little more ergonomic

This commit is contained in:
bunnie 2022-11-15 02:25:22 +08:00
parent ef5c05683c
commit 08de49dab1

View file

@ -666,7 +666,9 @@ impl<'a> ShellCmdApi<'a> for Test {
} }
} }
"hpstate" => { "hpstate" => {
write!(ret, "HP state: {:?}", self.codec.poll_headphone_state()).ok(); let state = self.codec.poll_headphone_state();
log::info!("{:?}", state);
write!(ret, "{:?}", state).ok();
} }
"ecup" => { "ecup" => {
let ecup_conn = env.xns.request_connection_blocking("__ECUP server__").unwrap(); let ecup_conn = env.xns.request_connection_blocking("__ECUP server__").unwrap();