mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
modernize codec debug
This commit is contained in:
parent
8931f10383
commit
7e04357aba
1 changed files with 3 additions and 2 deletions
|
|
@ -62,8 +62,9 @@ fn wrapped_main() -> ! {
|
|||
let mut audio_cb_conns: [Option<ScalarCallback>; 32] = [None; 32];
|
||||
loop {
|
||||
let mut msg = xous::receive_message(codec_sid).unwrap();
|
||||
//log::trace!("got message {:?}", msg);
|
||||
match FromPrimitive::from_usize(msg.body.id()) {
|
||||
let op: Option<api::Opcode> = FromPrimitive::from_usize(msg.body.id());
|
||||
log::debug!("{:?}", op);
|
||||
match op {
|
||||
Some(api::Opcode::SuspendResume) => msg_scalar_unpack!(msg, token, _, _, _, {
|
||||
codec.suspend();
|
||||
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
||||
|
|
|
|||
Loading…
Reference in a new issue