Skip to content

Commit bf57c06

Browse files
HID report ID was not incrementing in multi-HID
Fixes #3207
1 parent 0c7d111 commit bf57c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/USB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ uint8_t USBClass::findInterfaceID(unsigned int localid) {
163163

164164
// Called by a HID device to register a report. Returns the *local* ID which must be mapped to the HID report ID
165165
uint8_t USBClass::registerHIDDevice(const uint8_t *descriptor, size_t len, int ordering, uint32_t pidMask) {
166-
return addEntry(&_hids, 0, nullptr, (const void *)descriptor, len, ordering, pidMask);
166+
return addEntry(&_hids, 1, nullptr, (const void *)descriptor, len, ordering, pidMask);
167167
}
168168

169169
void USBClass::unregisterHIDDevice(unsigned int localid) {

0 commit comments

Comments
 (0)