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 b68728d commit 3dd74a3Copy full SHA for 3dd74a3
src/Adafruit_USBD_HID.cpp
@@ -81,7 +81,7 @@ uint16_t Adafruit_USBD_HID::getDescriptor(uint8_t itfnum, uint8_t* buf, uint16_t
81
if ( _out_endpoint )
82
{
83
// usb core will automatically update endpoint number
84
- uint8_t desc[] = { TUD_HID_INOUT_DESCRIPTOR(itfnum, 0, _protocol, _desc_report_len, EPIN, EPOUT, CFG_TUD_HID_BUFSIZE, _interval_ms) };
+ uint8_t desc[] = { TUD_HID_INOUT_DESCRIPTOR(itfnum, 0, _protocol, _desc_report_len, EPOUT, EPIN, CFG_TUD_HID_BUFSIZE, _interval_ms) };
85
uint16_t const len = sizeof(desc);
86
87
if ( bufsize < len ) return 0;
0 commit comments