Add a control_buf to UsbDevice

This commit is contained in:
alexmoon
2022-03-29 15:09:24 -04:00
committed by Dario Nieuwenhuis
parent c53bb7394a
commit 13370c28db
5 changed files with 33 additions and 14 deletions

View File

@ -164,7 +164,7 @@ pub trait ControlHandler {
/// # Arguments
///
/// * `req` - The request from the SETUP packet.
fn control_in(&mut self, req: Request) -> InResponse<'_> {
fn control_in<'a>(&'a mut self, req: Request, buf: &'a mut [u8]) -> InResponse<'a> {
InResponse::Rejected
}
}