projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add LUFA-111009-BETA tag.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Host
/
MIDI.c
diff --git
a/LUFA/Drivers/USB/Class/Host/MIDI.c
b/LUFA/Drivers/USB/Class/Host/MIDI.c
index
944ecc3
..
9f7bbd4
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/MIDI.c
+++ b/
LUFA/Drivers/USB/Class/Host/MIDI.c
@@
-72,7
+72,7
@@
uint8_t MIDI_Host_ConfigurePipes(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceI
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t);
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t);
- if (
EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR
_DIR_IN)
+ if (
(EndpointData->EndpointAddress & ENDPOINT_DIR_MASK) == ENDPOINT
_DIR_IN)
DataINEndpoint = EndpointData;
else
DataOUTEndpoint = EndpointData;
DataINEndpoint = EndpointData;
else
DataOUTEndpoint = EndpointData;