We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5364fc0 commit e4befd8Copy full SHA for e4befd8
cores/arduino/ArduinoDS4/ArduinoDS4_USBDesc.cpp
@@ -341,8 +341,8 @@ const u8 hidClassDescriptor[] = {
341
0x00, // bCountryCode
342
0x01, // bNumDescriptors
343
0x22, // bDescriptorType[0] = Report
344
- LSB(hidDescriptorSize), // wDescriptorLength (LSB)
345
- MSB(hidDescriptorSize) // wDescriptorLength (MSB)
+ (uint8_t)(hidDescriptorSize & 0xFF), // wDescriptorLength (LSB)
+ (uint8_t)((hidDescriptorSize >> 8) & 0xFF) // wDescriptorLength (MSB)
346
};
347
348
const u16 hidClassDescriptorSize = sizeof(hidClassDescriptor);
0 commit comments