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.

This commit is contained in:
alexmoon
2022-04-01 10:57:37 -04:00
committed by Dario Nieuwenhuis
parent daf2379fa4
commit c309531874
2 changed files with 69 additions and 73 deletions

View File

@ -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.