diff options
Diffstat (limited to 'embassy-usb/src/class/hid.rs')
| -rw-r--r-- | embassy-usb/src/class/hid.rs | 6 |
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])) |
