mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
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());
|
||||
#[cfg(feature = "msos-descriptor")]
|
||||
info!("USB: msos_descriptor used: {}", msos_descriptor.len());
|
||||
if self.control_buf.len() != self.config.max_packet_size_0.into() {
|
||||
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());
|
||||
}
|
||||
info!("USB: control_buf size: {}", self.control_buf.len());
|
||||
|
||||
UsbDevice::build(
|
||||
self.driver,
|
||||
|
@ -458,8 +458,8 @@ impl<'d> Handler for Control<'d> {
|
||||
return None;
|
||||
}
|
||||
|
||||
// TODO(AJM): This uses a defmt-specific formatter that causes use of the `log`
|
||||
// feature to fail to build
|
||||
// This uses a defmt-specific formatter that causes use of the `log`
|
||||
// feature to fail to build, so leave it defmt-specific for now.
|
||||
#[cfg(feature = "defmt")]
|
||||
trace!("HID control_out {:?} {=[u8]:x}", req, data);
|
||||
match req.request {
|
||||
|
Loading…
Reference in New Issue
Block a user