fix ordering of USB start until everything is setup

This commit is contained in:
bunnie 2025-11-02 10:36:24 +08:00
parent 2f0895b46c
commit c309336897

View file

@ -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();