aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf
diff options
context:
space:
mode:
authoralexmoon <[email protected]>2022-04-05 17:23:46 -0400
committerDario Nieuwenhuis <[email protected]>2022-04-06 05:38:11 +0200
commita1754ac8a820d9cae97cf214969faf3090b37c76 (patch)
treecf6f9d3fcb0a41d175252521fec09b80085a7180 /examples/nrf
parent22a47aeeb2bc9d459a6e83414632890164a7b448 (diff)
embassy-usb-hid bug fixes
Diffstat (limited to 'examples/nrf')
-rw-r--r--examples/nrf/src/bin/usb_hid_keyboard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf/src/bin/usb_hid_keyboard.rs b/examples/nrf/src/bin/usb_hid_keyboard.rs
index af70a9a60..51136292f 100644
--- a/examples/nrf/src/bin/usb_hid_keyboard.rs
+++ b/examples/nrf/src/bin/usb_hid_keyboard.rs
@@ -54,7 +54,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
54 let mut control_buf = [0; 16]; 54 let mut control_buf = [0; 16];
55 let request_handler = MyRequestHandler {}; 55 let request_handler = MyRequestHandler {};
56 56
57 let mut state = State::<64, 64>::new(); 57 let mut state = State::<8, 1>::new();
58 58
59 let mut builder = UsbDeviceBuilder::new( 59 let mut builder = UsbDeviceBuilder::new(
60 driver, 60 driver,
@@ -117,7 +117,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
117 }; 117 };
118 118
119 let out_fut = async { 119 let out_fut = async {
120 hid_out.run(&MyRequestHandler {}).await; 120 hid_out.run(false, &request_handler).await;
121 }; 121 };
122 // Run everything concurrently. 122 // Run everything concurrently.
123 // If we had made everything `'static` above instead, we could do this using separate tasks instead. 123 // If we had made everything `'static` above instead, we could do this using separate tasks instead.