aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nrf/src')
-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.