From 1688a3c393375790b223da70d41106fd59431878 Mon Sep 17 00:00:00 2001 From: matteo Date: Sun, 21 Sep 2025 18:08:42 +0200 Subject: update comments --- embassy-usb/src/class/hid.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'embassy-usb') diff --git a/embassy-usb/src/class/hid.rs b/embassy-usb/src/class/hid.rs index f97bcdfac..c8875435f 100644 --- a/embassy-usb/src/class/hid.rs +++ b/embassy-usb/src/class/hid.rs @@ -530,8 +530,8 @@ impl<'d> Handler for Control<'d> { (Some(request_handler), hid_protocol) => Some(request_handler.set_protocol(hid_protocol)), (None, HidProtocolMode::Report) => Some(OutResponse::Accepted), (None, HidProtocolMode::Boot) => { - warn!("HID Boot Protocol is unsupported."); - Some(OutResponse::Rejected) // UNSUPPORTED: Boot Protocol + info!("Received request to switch to Boot protocol mode, but it is disabled by default."); + Some(OutResponse::Rejected) } } } @@ -588,7 +588,7 @@ impl<'d> Handler for Control<'d> { if let Some(request_handler) = self.request_handler.as_mut() { buf[0] = request_handler.get_protocol() as u8; } else { - // Return `Report` protocol by default + // Return `Report` protocol mode by default buf[0] = HidProtocolMode::Report as u8; } Some(InResponse::Accepted(&buf[0..1])) -- cgit