From 5d596c2e0078f2f1031f129ef5f855237b9d563c Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 17 Apr 2023 03:42:27 +0800 Subject: [PATCH] add some code to remind myself about certain guarantees --- services/xous-log/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/xous-log/src/main.rs b/services/xous-log/src/main.rs index 076ba723d..8f24b3ffa 100644 --- a/services/xous-log/src/main.rs +++ b/services/xous-log/src/main.rs @@ -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(); },