From ba18f3cbe2e605181f2c1b1034de03f5ce10302a Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 30 Mar 2022 23:33:00 +0800 Subject: [PATCH] don't try to reset the RTC alarm in hosted mode there isn't an RTC in hosted mode! --- services/status/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 9f9d195fd..606c9f81f 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -358,7 +358,10 @@ fn xmain() -> ! { } }); log::info!("|status: starting main loop"); // don't change this -- factory test looks for this exact string + + #[cfg(any(target_os = "none", target_os = "xous"))] llio.clear_wakeup_alarm().unwrap(); // this is here to clear any wake-up alarms that were set by a prior coldboot command + pump_run.store(true, Ordering::Relaxed); // start status thread updating loop { let msg = xous::receive_message(status_sid).unwrap();