From ca2a47e67f6c19a4f44aeb625b1c1d9ee4480647 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 31 Jan 2023 03:27:28 +0800 Subject: [PATCH] fix hosted mode again --- services/usb-device-xous/src/main_hosted.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/usb-device-xous/src/main_hosted.rs b/services/usb-device-xous/src/main_hosted.rs index 0d55100ba..4968fc6dd 100644 --- a/services/usb-device-xous/src/main_hosted.rs +++ b/services/usb-device-xous/src/main_hosted.rs @@ -97,12 +97,15 @@ pub(crate) fn main_hosted() -> ! { let opcode: Option = FromPrimitive::from_usize(msg.body.id()); log::debug!("{:?}", opcode); match opcode { + #[cfg(feature="mass-storage")] Some(Opcode::SetBlockDevice) => { log::info!("ignoring SetBlockDevice in hosted mode"); }, + #[cfg(feature="mass-storage")] Some(Opcode::SetBlockDeviceSID) => { log::info!("ignoring SetBlockDeviceSID in hosted mode"); }, + #[cfg(feature="mass-storage")] Some(Opcode::ResetBlockDevice) => { log::info!("ignoring ResetBlockDevice in hosted mode"); },