We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4264231 commit 601f347Copy full SHA for 601f347
apps/vault/src/prereqs.rs
@@ -180,6 +180,7 @@ pub(crate) fn ntp_updater(time_conn: xous::CID) {
180
let tt = ticktimer_server::Ticktimer::new().unwrap();
181
let mut now = SystemTime::now();
182
let mut force_update = true;
183
+ tt.sleep_ms(1000 * 60 * 2); // initial delay of 2 minutes before polling. This gives plenty of time for network to come up.
184
loop {
185
if force_update || now.elapsed().unwrap().as_secs() > 3600 * 24 { // once a day in real time
186
// check if we have a network connection. if not, repeat the loop, after a short delay
0 commit comments