Skip to content

Commit e4befd8

Browse files
authored
Update ArduinoDS4_USBDesc.cpp
1 parent 5364fc0 commit e4befd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/ArduinoDS4/ArduinoDS4_USBDesc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ const u8 hidClassDescriptor[] = {
341341
0x00, // bCountryCode
342342
0x01, // bNumDescriptors
343343
0x22, // bDescriptorType[0] = Report
344-
LSB(hidDescriptorSize), // wDescriptorLength (LSB)
345-
MSB(hidDescriptorSize) // wDescriptorLength (MSB)
344+
(uint8_t)(hidDescriptorSize & 0xFF), // wDescriptorLength (LSB)
345+
(uint8_t)((hidDescriptorSize >> 8) & 0xFF) // wDescriptorLength (MSB)
346346
};
347347

348348
const u16 hidClassDescriptorSize = sizeof(hidClassDescriptor);

0 commit comments

Comments
 (0)