Add logging and interface for debugging buffer usage

This commit is contained in:
James Munns
2023-03-27 14:19:00 +02:00
parent 732614579b
commit a6cef4baf2
4 changed files with 59 additions and 0 deletions

View File

@ -458,6 +458,9 @@ 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
#[cfg(feature = "defmt")]
trace!("HID control_out {:?} {=[u8]:x}", req, data);
match req.request {
HID_REQ_SET_IDLE => {