mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
clean up warning
This commit is contained in:
parent
601f3476f4
commit
1ca0ef7b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ pub(crate) fn ntp_updater(time_conn: xous::CID) {
|
||||||
let tt = ticktimer_server::Ticktimer::new().unwrap();
|
let tt = ticktimer_server::Ticktimer::new().unwrap();
|
||||||
let mut now = SystemTime::now();
|
let mut now = SystemTime::now();
|
||||||
let mut force_update = true;
|
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 {
|
loop {
|
||||||
if force_update || now.elapsed().unwrap().as_secs() > 3600 * 24 { // once a day in real time
|
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
|
// check if we have a network connection. if not, repeat the loop, after a short delay
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue