From 5ed16b14450892c3c901dc18cae562fef07d5a67 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 7 Mar 2024 11:08:28 +0900 Subject: [PATCH] usb_hid: Fix for Unicomp Mini M #773 The keyboard sends 10 byte report, not 8. --- tmk_core/protocol/usb_hid/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmk_core/protocol/usb_hid/parser.cpp b/tmk_core/protocol/usb_hid/parser.cpp index 51746e14..f8c8ccd6 100644 --- a/tmk_core/protocol/usb_hid/parser.cpp +++ b/tmk_core/protocol/usb_hid/parser.cpp @@ -12,11 +12,14 @@ void KBDReportParser::Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *b } xprintf("\r\n"); + /* Keyboard can send report in size other than 8 bytes + * https://github.com/tmk/tmk_keyboard/issues/773 // boot keyboard report length should be 8 if (len != 8) { xprintf(" ignored\r\n"); return; } + */ // Rollover error // Cherry: 0101010101010101