add some code to remind myself about certain guarantees

This commit is contained in:
bunnie 2023-04-17 03:42:27 +08:00
parent a105bcb73c
commit 5d596c2e00

View file

@ -281,6 +281,7 @@ fn reader_thread(arg: usize) {
},
#[cfg(feature="usb")]
5 /* api::Opcode::UnhookUsbMirror */ => {
// Note: this routine should be coded so that it is never harmful if unhook is called in an already unhooked state.
usb_serial.take();
xous::return_scalar(envelope.sender, 1).ok();
},