You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In function usb_midi_GetStringDescriptor there's a check for size of structure instead of check for number of string descriptors.
I think this line if (wValue0 >= sizeof(usbMIDIString_Descriptor) ) {
should be replaced with if (wValue0 >= (sizeof(usbMIDIString_Descriptor) / sizeof(usbMIDIString_Descriptor[0])) ) {
The text was updated successfully, but these errors were encountered:
In function usb_midi_GetStringDescriptor there's a check for size of structure instead of check for number of string descriptors.
I think this line
if (wValue0 >= sizeof(usbMIDIString_Descriptor) ) {
should be replaced with
if (wValue0 >= (sizeof(usbMIDIString_Descriptor) / sizeof(usbMIDIString_Descriptor[0])) ) {
The text was updated successfully, but these errors were encountered: