Skip to content

Commit 220f993

Browse files
authored
Update ArduinoDS4_USBDesc.cpp
1 parent 5a25d0c commit 220f993

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cores/arduino/ArduinoDS4/ArduinoDS4_USBDesc.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,19 @@ const u8 hidDescriptor[] = {
334334

335335
const u16 hidDescriptorSize = sizeof(hidDescriptor);
336336

337+
const u8 hidClassDescriptor[] = {
338+
0x09, // bLength
339+
0x21, // bDescriptorType (HID)
340+
0x11, 0x01, // bcdHID = 1.11
341+
0x00, // bCountryCode
342+
0x01, // bNumDescriptors
343+
0x22, // bDescriptorType[0] = Report
344+
LSB(hidDescriptorSize), // wDescriptorLength (LSB)
345+
MSB(hidDescriptorSize) // wDescriptorLength (MSB)
346+
};
347+
348+
const u16 hidClassDescriptorSize = sizeof(hidClassDescriptor);
349+
337350
const u8 output_0x02[] = {
338351
0xfe, 0xff, 0x0e, 0x00, 0x04, 0x00, 0xd4, 0x22,
339352
0x2a, 0xdd, 0xbb, 0x22, 0x5e, 0xdd, 0x81, 0x22,

0 commit comments

Comments
 (0)