From 1ca0ef7b1f864cd7c0f562251da07f1352064b8b Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 5 Nov 2022 16:30:29 +0800 Subject: [PATCH] clean up warning --- apps/vault/src/prereqs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/vault/src/prereqs.rs b/apps/vault/src/prereqs.rs index 27ca0d666..d1f8ef5fc 100644 --- a/apps/vault/src/prereqs.rs +++ b/apps/vault/src/prereqs.rs @@ -180,7 +180,7 @@ pub(crate) fn ntp_updater(time_conn: xous::CID) { let tt = ticktimer_server::Ticktimer::new().unwrap(); let mut now = SystemTime::now(); let mut force_update = true; - tt.sleep_ms(1000 * 60 * 2); // initial delay of 2 minutes before polling. This gives plenty of time for network to come up. + tt.sleep_ms(1000 * 60 * 2).ok(); // initial delay of 2 minutes before polling. This gives plenty of time for network to come up. loop { if force_update || now.elapsed().unwrap().as_secs() > 3600 * 24 { // once a day in real time // check if we have a network connection. if not, repeat the loop, after a short delay