From ec4515579c28088298e2e05a264619d8586ef8f6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 31 Mar 2022 01:44:48 +0800 Subject: [PATCH] stashing a bit of code so i can remember how to conjure a delay in susres --- services/susres/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/susres/src/main.rs b/services/susres/src/main.rs index 35e16682f..978e29f2a 100644 --- a/services/susres/src/main.rs +++ b/services/susres/src/main.rs @@ -840,6 +840,18 @@ fn send_event(cb_conns: &Vec::, 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"); } }*/