From 94090e068ec8c56e4fd6676330d87305c5dfee3e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 15 Apr 2022 18:45:52 +0200 Subject: [PATCH] usb: fix wrong logging of CONTROL OUT data. --- embassy-usb/src/control.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-usb/src/control.rs b/embassy-usb/src/control.rs index a613f114..9300d8c4 100644 --- a/embassy-usb/src/control.rs +++ b/embassy-usb/src/control.rs @@ -271,9 +271,9 @@ impl ControlPipe { 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 {})) }