From c309531874052bc96ef9ce39dd8698c120cee824 Mon Sep 17 00:00:00 2001 From: alexmoon Date: Fri, 1 Apr 2022 10:57:37 -0400 Subject: 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. --- examples/nrf/src/bin/usb_hid.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') 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) { ); // Create classes on the builder. - let mut hid = HidClass::new_ep_in( + let mut hid = HidClass::new( &mut builder, &mut state, MouseReport::desc(), Some(&request_handler), 60, + 8, ); // Build the builder. -- cgit