Skip to content

Commit

Permalink
πŸ› (hid_report_writer.rs): decrease initial USB peripheral delay from …
Browse files Browse the repository at this point in the history
…1 sec to 200 ms for faster startup times
  • Loading branch information
windoze committed Jan 5, 2025
1 parent 8c93877 commit 6d176de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hid_report_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub fn init_hid(
let usb_fut = async {
// I highly doubt there are some kind of race conditions inside of the OTG_FS driver.
// M5Atom S3 cannot start the USB peripheral without a delay, but S3 Lite can.
embassy_time::Timer::after(embassy_time::Duration::from_secs(1)).await;
embassy_time::Timer::after(embassy_time::Duration::from_millis(200)).await;
// Build the builder.
let mut usb = builder.build();
usb.run().await;
Expand Down

0 comments on commit 6d176de

Please sign in to comment.