convert the connection manager to use the new PDDB blocking call

This commit is contained in:
bunnie 2022-03-22 22:17:04 +08:00
parent 86e86df68c
commit fe52756a3d

View file

@ -107,9 +107,7 @@ pub(crate) fn connection_manager(sid: xous::SID, activity_interval: Arc<AtomicU3
move || {
let tt = ticktimer_server::Ticktimer::new().unwrap();
let pddb = pddb::Pddb::new();
while !pddb.is_mounted() {
tt.sleep_ms(1103).unwrap(); // don't pump the loop until the PDDB has been mounted, but check back regularly
}
pddb.is_mounted_blocking(None);
loop {
let msg = xous::receive_message(sid).unwrap();
match FromPrimitive::from_usize(msg.body.id()) {