mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix ordering of USB start until everything is setup
This commit is contained in:
parent
2f0895b46c
commit
c309336897
1 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue