From f6c7d9c89eb416249564cf731d81e2d6f8e3a236 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 17 Jan 2026 16:23:53 +0800 Subject: [PATCH] enable USB console by default this helps with production & ci --- services/bao-console/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/bao-console/src/main.rs b/services/bao-console/src/main.rs index 0b3583b62..d9688786e 100644 --- a/services/bao-console/src/main.rs +++ b/services/bao-console/src/main.rs @@ -15,6 +15,10 @@ fn main() { let tt = ticktimer::Ticktimer::new().unwrap(); shell::start_shell(); + tt.sleep_ms(500).ok(); // pause for the system to startup + let usb = usb_bao1x::UsbHid::new(); + usb.serial_console_input_injection(); + tt.sleep_ms(4000).ok(); #[cfg(all(feature = "board-baosec", feature = "test-flash"))]