mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
turn off console printing to USB when USB is shut down
This commit is contained in:
parent
428845777b
commit
9a1cd5429d
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ pub fn setup() -> (UsbDeviceState, u32) {
|
|||
}
|
||||
|
||||
pub fn shutdown() {
|
||||
crate::debug::USE_CONSOLE.store(false, core::sync::atomic::Ordering::SeqCst);
|
||||
unsafe {
|
||||
if let Some(ref mut usb_ref) = crate::platform::bao1x::usb::USB {
|
||||
let usb = &mut *core::ptr::addr_of_mut!(*usb_ref);
|
||||
|
|
|
|||
Loading…
Reference in a new issue