mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add some prints to help debug susres issues
This commit is contained in:
parent
413dc51a35
commit
2d74630bdf
2 changed files with 4 additions and 1 deletions
|
|
@ -466,6 +466,7 @@ impl<'a> ShellCmdApi<'a> for Test {
|
|||
log::info!("initiating suspend");
|
||||
env.ticktimer.sleep_ms(250).unwrap(); // give a moment for all the command queues to clear
|
||||
susres.initiate_suspend().unwrap();
|
||||
log::info!("resumed");
|
||||
env.ticktimer.sleep_ms(1000).unwrap(); // pause for the suspend/resume cycle
|
||||
|
||||
let timeout = 60_000;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,9 @@ pub(crate) fn oqc_test(oqc_cid: Arc<AtomicU32>, kbd: keyboard::Keyboard) {
|
|||
oqc_cid.store(xous::connect(oqc_sid).unwrap(), Ordering::SeqCst);
|
||||
loop {
|
||||
let msg = xous::receive_message(oqc_sid).unwrap();
|
||||
match FromPrimitive::from_usize(msg.body.id()) {
|
||||
let opcode: Option<OqcOp> = FromPrimitive::from_usize(msg.body.id());
|
||||
log::info!("{:?}", opcode);
|
||||
match opcode {
|
||||
Some(OqcOp::Trigger) => xous::msg_blocking_scalar_unpack!(msg, timeout_set, _, _, _, {
|
||||
if !test_run {
|
||||
// test the screen
|
||||
|
|
|
|||
Loading…
Reference in a new issue