diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-04-15 18:45:52 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-15 18:45:52 +0200 |
| commit | 94090e068ec8c56e4fd6676330d87305c5dfee3e (patch) | |
| tree | 295e14c4fe49b52c8098276e6c38c8b928e21f64 /embassy-usb/src/control.rs | |
| parent | 3a90a8eb4a5ef61aef034025ac882255c94260dc (diff) | |
usb: fix wrong logging of CONTROL OUT data.
Diffstat (limited to 'embassy-usb/src/control.rs')
| -rw-r--r-- | embassy-usb/src/control.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-usb/src/control.rs b/embassy-usb/src/control.rs index a613f1145..9300d8c4c 100644 --- a/embassy-usb/src/control.rs +++ b/embassy-usb/src/control.rs | |||
| @@ -271,9 +271,9 @@ impl<C: driver::ControlPipe> ControlPipe<C> { | |||
| 271 | 271 | ||
| 272 | let res = &buf[0..total]; | 272 | let res = &buf[0..total]; |
| 273 | #[cfg(feature = "defmt")] | 273 | #[cfg(feature = "defmt")] |
| 274 | trace!(" control out data: {:02x}", buf); | 274 | trace!(" control out data: {:02x}", res); |
| 275 | #[cfg(not(feature = "defmt"))] | 275 | #[cfg(not(feature = "defmt"))] |
| 276 | trace!(" control out data: {:02x?}", buf); | 276 | trace!(" control out data: {:02x?}", res); |
| 277 | 277 | ||
| 278 | Ok((res, StatusStage {})) | 278 | Ok((res, StatusStage {})) |
| 279 | } | 279 | } |
