1
0
mirror of https://github.com/gdsports/USBHost_t36 synced 2024-11-10 11:15:07 -05:00

Do not let HID parser claim boot protocol keyboards

This commit is contained in:
PaulStoffregen 2017-10-08 03:37:00 -07:00
parent 2b0fda8a11
commit 1e6d0db268

View File

@ -54,6 +54,8 @@ bool USBHIDParser::claim(Device_t *dev, int type, const uint8_t *descriptors, ui
println(" bInterfaceClass = ", descriptors[5]); println(" bInterfaceClass = ", descriptors[5]);
println(" bInterfaceSubClass = ", descriptors[6]); println(" bInterfaceSubClass = ", descriptors[6]);
println(" bInterfaceProtocol = ", descriptors[7]); println(" bInterfaceProtocol = ", descriptors[7]);
// do not claim boot protocol keyboards
if (descriptors[6] == 1 && descriptors[7] == 1) return false;
// hid interface descriptor // hid interface descriptor
uint32_t hidlen = descriptors[9]; uint32_t hidlen = descriptors[9];