diff --git a/apps-dabao/dabao-console/src/main.rs b/apps-dabao/dabao-console/src/main.rs index 30270644e..dbdbc1086 100644 --- a/apps-dabao/dabao-console/src/main.rs +++ b/apps-dabao/dabao-console/src/main.rs @@ -17,15 +17,16 @@ fn main() { // allow preemption in the dabao console environment hal.set_preemption(true); + // spawn the shell thread + shell::start_shell(); + #[cfg(feature = "usb")] { + tt.sleep_ms(500).ok(); // pause for the system to startup let usb = UsbHid::new(); usb.serial_console_input_injection(); } - // spawn the shell thread - shell::start_shell(); - #[cfg(feature = "ctap-bringup")] { tt.sleep_ms(4000).ok();