aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/class
diff options
context:
space:
mode:
authormatteo <email>2025-09-21 18:08:42 +0200
committermatteo <email>2025-09-21 18:08:42 +0200
commit1688a3c393375790b223da70d41106fd59431878 (patch)
tree132f7c26f721603ef0ede1e613a260a507588356 /embassy-usb/src/class
parent2cf7cc4c92fe0f7897513286e4bce944870e1bad (diff)
update comments
Diffstat (limited to 'embassy-usb/src/class')
-rw-r--r--embassy-usb/src/class/hid.rs6
1 files changed, 3 insertions, 3 deletions
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> {
530 (Some(request_handler), hid_protocol) => Some(request_handler.set_protocol(hid_protocol)), 530 (Some(request_handler), hid_protocol) => Some(request_handler.set_protocol(hid_protocol)),
531 (None, HidProtocolMode::Report) => Some(OutResponse::Accepted), 531 (None, HidProtocolMode::Report) => Some(OutResponse::Accepted),
532 (None, HidProtocolMode::Boot) => { 532 (None, HidProtocolMode::Boot) => {
533 warn!("HID Boot Protocol is unsupported."); 533 info!("Received request to switch to Boot protocol mode, but it is disabled by default.");
534 Some(OutResponse::Rejected) // UNSUPPORTED: Boot Protocol 534 Some(OutResponse::Rejected)
535 } 535 }
536 } 536 }
537 } 537 }
@@ -588,7 +588,7 @@ impl<'d> Handler for Control<'d> {
588 if let Some(request_handler) = self.request_handler.as_mut() { 588 if let Some(request_handler) = self.request_handler.as_mut() {
589 buf[0] = request_handler.get_protocol() as u8; 589 buf[0] = request_handler.get_protocol() as u8;
590 } else { 590 } else {
591 // Return `Report` protocol by default 591 // Return `Report` protocol mode by default
592 buf[0] = HidProtocolMode::Report as u8; 592 buf[0] = HidProtocolMode::Report as u8;
593 } 593 }
594 Some(InResponse::Accepted(&buf[0..1])) 594 Some(InResponse::Accepted(&buf[0..1]))