Skip to content

Commit 5b5ded0

Browse files
committed
Change bCountryCode from 0x21 (US) to 0x00 (irrelevant)
Update the D_HIDREPORT macro to set bCountryCode from 0x21 (US) to 0x00 (irrelevant) in the HID interface descriptor. Done since there's no reason for making battery and UPS devices specific to a single country. This also makes the sources more similar to to upstream Arduino sources on https://github.com/arduino/ArduinoCore-avr/blob/master/libraries/HID/src/HID.h Documentation: https://wiki.osdev.org/USB_Human_Interface_Devices#USB_Report_Protocol
1 parent 6f6442f commit 5b5ded0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HID/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class HID_ : public PluggableUSBModule
162162
// https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use
163163
HID_& HID();
164164

165-
#define D_HIDREPORT(length) { 9, 0x21, 0x01, 0x01, 0x21, 1, 0x22, lowByte(length), highByte(length) }
165+
#define D_HIDREPORT(length) { 9, 0x21, 0x01, 0x01, 0, 1, 0x22, lowByte(length), highByte(length) }
166166

167167
#endif // USBCON
168168

0 commit comments

Comments
 (0)