stashing a bit of code so i can remember how to conjure a delay in susres

This commit is contained in:
bunnie 2022-03-31 01:44:48 +08:00
parent 8b5ad2657b
commit ec4515579c

View file

@ -840,6 +840,18 @@ fn send_event(cb_conns: &Vec::<ScalarCallback>, order: crate::api::SuspendOrder)
#[cfg(not(any(target_os = "none", target_os = "xous")))]
{
if order == crate::api::SuspendOrder::Last {
let tt_conn = xous::connect(xous::SID::from_bytes(b"ticktimer-server").unwrap()).unwrap();
send_message(
tt_conn,
xous::Message::new_blocking_scalar(
1,
1000,
0,
0,
0,
),
)
.map(|_| ()).unwrap();
xous::rsyscall(xous::SysCall::Shutdown).expect("unable to quit");
}
}*/