From c309336897c0fb18279071e9a0022a55a38e250a Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 2 Nov 2025 10:36:24 +0800 Subject: [PATCH] fix ordering of USB start until everything is setup --- apps-dabao/dabao-console/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();