diff options
| author | alexmoon <[email protected]> | 2022-04-01 10:57:37 -0400 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-06 05:38:11 +0200 |
| commit | c309531874052bc96ef9ce39dd8698c120cee824 (patch) | |
| tree | 365424e5b37ec66a200a49fd0cd157dd57f278bb /examples/nrf/src | |
| parent | daf2379fa4d4ab8772982847613a09a750ac7ba8 (diff) | |
Remove output() and split() methods from HidClass when there is no out endpoint, and route set_report requests for output reports to RequestHandler::set_report in that case.
Diffstat (limited to 'examples/nrf/src')
| -rw-r--r-- | examples/nrf/src/bin/usb_hid.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/usb_hid.rs b/examples/nrf/src/bin/usb_hid.rs index 11c2d71ad..5253f225d 100644 --- a/examples/nrf/src/bin/usb_hid.rs +++ b/examples/nrf/src/bin/usb_hid.rs | |||
| @@ -64,12 +64,13 @@ async fn main(_spawner: Spawner, p: Peripherals) { | |||
| 64 | ); | 64 | ); |
| 65 | 65 | ||
| 66 | // Create classes on the builder. | 66 | // Create classes on the builder. |
| 67 | let mut hid = HidClass::new_ep_in( | 67 | let mut hid = HidClass::new( |
| 68 | &mut builder, | 68 | &mut builder, |
| 69 | &mut state, | 69 | &mut state, |
| 70 | MouseReport::desc(), | 70 | MouseReport::desc(), |
| 71 | Some(&request_handler), | 71 | Some(&request_handler), |
| 72 | 60, | 72 | 60, |
| 73 | 8, | ||
| 73 | ); | 74 | ); |
| 74 | 75 | ||
| 75 | // Build the builder. | 76 | // Build the builder. |
