diff options
| author | matteo <email> | 2025-10-01 18:30:15 +0200 |
|---|---|---|
| committer | matteo <email> | 2025-10-01 18:30:15 +0200 |
| commit | d79d433d02ab154e5f8570392fd0ca1ffdf9cac1 (patch) | |
| tree | f2b268ef58d7960e31575587d9ab0ef9f1eda02a /examples/nrf52840 | |
| parent | 5c8218b8750bed3f4bef7973e250aa830d8c2fe3 (diff) | |
rename HidSubclass to match hid spec
Diffstat (limited to 'examples/nrf52840')
| -rw-r--r-- | examples/nrf52840/src/bin/usb_hid_keyboard.rs | 2 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_hid_mouse.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/usb_hid_keyboard.rs b/examples/nrf52840/src/bin/usb_hid_keyboard.rs index 8649d5667..540580c31 100644 --- a/examples/nrf52840/src/bin/usb_hid_keyboard.rs +++ b/examples/nrf52840/src/bin/usb_hid_keyboard.rs | |||
| @@ -82,7 +82,7 @@ async fn main(_spawner: Spawner) { | |||
| 82 | request_handler: None, | 82 | request_handler: None, |
| 83 | poll_ms: 60, | 83 | poll_ms: 60, |
| 84 | max_packet_size: 64, | 84 | max_packet_size: 64, |
| 85 | hid_subclass: HidSubclass::ReportOrBoot, | 85 | hid_subclass: HidSubclass::Boot, |
| 86 | hid_boot_protocol: HidBootProtocol::Keyboard, | 86 | hid_boot_protocol: HidBootProtocol::Keyboard, |
| 87 | }; | 87 | }; |
| 88 | let hid = HidReaderWriter::<_, 1, 8>::new(&mut builder, &mut state, config); | 88 | let hid = HidReaderWriter::<_, 1, 8>::new(&mut builder, &mut state, config); |
diff --git a/examples/nrf52840/src/bin/usb_hid_mouse.rs b/examples/nrf52840/src/bin/usb_hid_mouse.rs index 4baf2e814..efc28203c 100644 --- a/examples/nrf52840/src/bin/usb_hid_mouse.rs +++ b/examples/nrf52840/src/bin/usb_hid_mouse.rs | |||
| @@ -73,7 +73,7 @@ async fn main(_spawner: Spawner) { | |||
| 73 | request_handler: Some(&mut request_handler), | 73 | request_handler: Some(&mut request_handler), |
| 74 | poll_ms: 60, | 74 | poll_ms: 60, |
| 75 | max_packet_size: 8, | 75 | max_packet_size: 8, |
| 76 | hid_subclass: HidSubclass::ReportOrBoot, | 76 | hid_subclass: HidSubclass::Boot, |
| 77 | hid_boot_protocol: HidBootProtocol::Mouse, | 77 | hid_boot_protocol: HidBootProtocol::Mouse, |
| 78 | }; | 78 | }; |
| 79 | 79 | ||
