mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Increase USBHID::maxHidInterfaces from 3 to 5
It's not that uncommon to have more than three HID interfaces in a USB device - even an Arduino Leonardo (or Pro Micro) always has two just for the CDC; if you add a Boot Keyboard HID interface and one generic HID interface for consumer control (multimedia) keys you already have four.. Many commercial gaming keyboards also have more then three interfaces (I don't think they really need that many but it is what it is).
This commit is contained in:
parent
6d7984ade2
commit
3658dc68f3
1 changed files with 1 additions and 1 deletions
2
usbhid.h
2
usbhid.h
|
@ -149,7 +149,7 @@ protected:
|
|||
static const uint8_t epInterruptInIndex = 1; // InterruptIN endpoint index
|
||||
static const uint8_t epInterruptOutIndex = 2; // InterruptOUT endpoint index
|
||||
|
||||
static const uint8_t maxHidInterfaces = 3;
|
||||
static const uint8_t maxHidInterfaces = 5;
|
||||
static const uint8_t maxEpPerInterface = 2;
|
||||
static const uint8_t totalEndpoints = (maxHidInterfaces * maxEpPerInterface + 1); // We need to make room for the control endpoint
|
||||
|
||||
|
|
Loading…
Reference in a new issue