mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-24 01:52:23 -05:00
Keyboard - Allow > 8 keyboard max report size
There has been at least one keyboard that does not report the report size !=8 that works... So try to allow for any that report >=8 <=64 to work.
This commit is contained in:
parent
e05dbaaee5
commit
a234bae99e
@ -125,8 +125,8 @@ bool KeyboardController::claim(Device_t *dev, int type, const uint8_t *descripto
|
||||
if (descriptors[21] != 3) return false; // must be interrupt type
|
||||
uint32_t size = descriptors[22] | (descriptors[23] << 8);
|
||||
println("packet size = ", size);
|
||||
if (size != 8) {
|
||||
return false; // must be 8 bytes for Keyboard Boot Protocol
|
||||
if ((size < 8) || (size > 64)) {
|
||||
return false; // Keyboard Boot Protocol is 8 bytes, but maybe others have longer...
|
||||
}
|
||||
#ifdef USBHS_KEYBOARD_INTERVAL
|
||||
uint32_t interval = USBHS_KEYBOARD_INTERVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user