From 4828d445bbc033e7a3f3cc6a87dee260195e73cb Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 12 Jun 2024 14:11:52 +0800 Subject: [PATCH] remove boot delay on usb stack --- services/usb-device-xous/src/main_hw.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/usb-device-xous/src/main_hw.rs b/services/usb-device-xous/src/main_hw.rs index 3a8bf49ad..10058e5d9 100644 --- a/services/usb-device-xous/src/main_hw.rs +++ b/services/usb-device-xous/src/main_hw.rs @@ -254,9 +254,6 @@ pub(crate) fn main_hw() -> ! { #[cfg(feature = "cramium-soc")] { - log::info!("Starting USB hardware in 2 seconds..."); - tt.sleep_ms(2000).ok(); - log::info!("NOW!"); // for the cramium target, call init only once via management structure usbwrapper.reset(); let mut poweron = 0; @@ -433,7 +430,7 @@ pub(crate) fn main_hw() -> ! { #[cfg(not(feature = "minimal"))] let mut view = Views::FidoWithKbd; #[cfg(feature = "cramium-soc")] - usb_dev.force_reset().ok(); // hard-coded to math the view specifier above + usb_dev.force_reset().ok(); // hard-coded to match the view specifier above let mut led_state: KeyboardLedsReport = KeyboardLedsReport::default(); let mut fido_listener: Option = None;