Address review comments
This commit is contained in:
parent
a77fdefd7c
commit
20aa86d63e
@ -207,15 +207,7 @@ impl<'d, D: Driver<'d>> Builder<'d, D> {
|
|||||||
info!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
|
info!("USB: bos_descriptor used: {}", self.bos_descriptor.writer.position());
|
||||||
#[cfg(feature = "msos-descriptor")]
|
#[cfg(feature = "msos-descriptor")]
|
||||||
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
|
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
|
||||||
if self.control_buf.len() != self.config.max_packet_size_0.into() {
|
info!("USB: control_buf size: {}", self.control_buf.len());
|
||||||
warn!(
|
|
||||||
"USB: Mismatch in control buf and max packet size! buf len: {}, max ep0 size: {}",
|
|
||||||
self.control_buf.len(),
|
|
||||||
self.config.max_packet_size_0,
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
info!("USB: control_buf size: {}", self.control_buf.len());
|
|
||||||
}
|
|
||||||
|
|
||||||
UsbDevice::build(
|
UsbDevice::build(
|
||||||
self.driver,
|
self.driver,
|
||||||
|
@ -458,8 +458,8 @@ impl<'d> Handler for Control<'d> {
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(AJM): This uses a defmt-specific formatter that causes use of the `log`
|
// This uses a defmt-specific formatter that causes use of the `log`
|
||||||
// feature to fail to build
|
// feature to fail to build, so leave it defmt-specific for now.
|
||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
trace!("HID control_out {:?} {=[u8]:x}", req, data);
|
trace!("HID control_out {:?} {=[u8]:x}", req, data);
|
||||||
match req.request {
|
match req.request {
|
||||||
|
Loading…
Reference in New Issue
Block a user