mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
when usb is disconnected, toggle the correct flag
was turning off console altogether we actually just want to turn off printing to USB.
This commit is contained in:
parent
18a58c7d18
commit
6bb94a148e
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ pub fn setup() -> (UsbDeviceState, u32) {
|
|||
}
|
||||
|
||||
pub fn shutdown() {
|
||||
crate::debug::USE_CONSOLE.store(false, core::sync::atomic::Ordering::SeqCst);
|
||||
crate::USB_CONNECTED.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