usb: fix wrong logging of CONTROL OUT data.

This commit is contained in:
Dario Nieuwenhuis 2022-04-15 18:45:52 +02:00
parent 3a90a8eb4a
commit 94090e068e

View File

@ -271,9 +271,9 @@ impl<C: driver::ControlPipe> ControlPipe<C> {
let res = &buf[0..total];
#[cfg(feature = "defmt")]
trace!(" control out data: {:02x}", buf);
trace!(" control out data: {:02x}", res);
#[cfg(not(feature = "defmt"))]
trace!(" control out data: {:02x?}", buf);
trace!(" control out data: {:02x?}", res);
Ok((res, StatusStage {}))
}