Skip to content

Commit

Permalink
usb/usbmidi: Allow to use Interrupt EPs
Browse files Browse the repository at this point in the history
Issue #316
  • Loading branch information
rsta2 committed Sep 24, 2022
1 parent b57d48a commit 646c362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/usb/usbmidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ boolean CUSBMIDIDevice::Configure (void)
TUSBAudioEndpointDescriptor *pEndpointDesc;
while ((pEndpointDesc = (TUSBAudioEndpointDescriptor *) GetDescriptor (DESCRIPTOR_ENDPOINT)) != 0)
{
if ((pEndpointDesc->bmAttributes & 0x3F) != 0x02) // Bulk EP
if ((pEndpointDesc->bmAttributes & 0x3E) != 0x02) // Bulk or Interrupt EP
{
continue;
}
Expand Down

0 comments on commit 646c362

Please sign in to comment.