embassy-usb-hid bug fixes

This commit is contained in:
alexmoon
2022-04-05 17:23:46 -04:00
committed by Dario Nieuwenhuis
parent 22a47aeeb2
commit a1754ac8a8
2 changed files with 70 additions and 21 deletions

View File

@ -54,7 +54,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
let mut control_buf = [0; 16];
let request_handler = MyRequestHandler {};
let mut state = State::<64, 64>::new();
let mut state = State::<8, 1>::new();
let mut builder = UsbDeviceBuilder::new(
driver,
@ -117,7 +117,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
};
let out_fut = async {
hid_out.run(&MyRequestHandler {}).await;
hid_out.run(false, &request_handler).await;
};
// Run everything concurrently.
// If we had made everything `'static` above instead, we could do this using separate tasks instead.