From 380b27da30e6c450ea3f65f87ffd583b101afd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Mon, 2 Jan 2023 17:55:38 +0100 Subject: [PATCH] correctly poll on the appropriate UMS device --- services/usb-device-xous/src/main_hw.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/services/usb-device-xous/src/main_hw.rs b/services/usb-device-xous/src/main_hw.rs index 680de45bd..e3278ce70 100644 --- a/services/usb-device-xous/src/main_hw.rs +++ b/services/usb-device-xous/src/main_hw.rs @@ -303,8 +303,13 @@ pub(crate) fn main_hw() -> ! { } }, Views::MassStorage => { - //ums.poll(); // TODO(gsora): wire ums poll - None + if ums_device.poll(&mut [&mut ums]) { + //Some(fido_class.interface::, _>()) + log::info!("mass storage took a irq!"); + None + } else { + None + } } }; if let Some(u2f) = maybe_u2f {