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"); },