mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
usb-device-xous: ignore block-device related messages in hosted mode
This commit is contained in:
parent
12a7271732
commit
2ff7d0a1fb
1 changed files with 9 additions and 0 deletions
|
|
@ -97,6 +97,15 @@ pub(crate) fn main_hosted() -> ! {
|
|||
let opcode: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
||||
log::debug!("{:?}", opcode);
|
||||
match opcode {
|
||||
Some(Opcode::SetBlockDevice) => {
|
||||
log::info!("ignoring SetBlockDevice in hosted mode");
|
||||
},
|
||||
Some(Opcode::SetBlockDeviceSID) => {
|
||||
log::info!("ignoring SetBlockDeviceSID in hosted mode");
|
||||
},
|
||||
Some(Opcode::ResetBlockDevice) => {
|
||||
log::info!("ignoring ResetBlockDevice in hosted mode");
|
||||
},
|
||||
Some(Opcode::SuspendResume) => msg_scalar_unpack!(msg, token, _, _, _, {
|
||||
usbmgmt.xous_suspend();
|
||||
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
||||
|
|
|
|||
Loading…
Reference in a new issue