usb: parse request in embassy-usb instead of the driver.

This commit is contained in:
Dario Nieuwenhuis
2022-05-12 18:14:48 +02:00
parent 30d4d0e9d7
commit 5fd55f9529
3 changed files with 8 additions and 13 deletions

View File

@ -246,7 +246,9 @@ impl<'d, D: Driver<'d>> UsbDevice<'d, D> {
}
}
async fn handle_control(&mut self, req: Request) {
async fn handle_control(&mut self, req: [u8; 8]) {
let req = Request::parse(&req);
trace!("control request: {:02x}", req);
match req.direction {