projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed lengthy timeouts in the USBtoSerial project if no application on the host is...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Device
/
MIDIClassDevice.c
diff --git
a/LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
b/LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
index
c9553a4
..
5defa14
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
+++ b/
LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
@@
-59,7
+59,10
@@
void MIDI_Device_USBTask(USB_ClassInfo_MIDI_Device_t* const MIDIInterfaceInfo)
return;
#if !defined(NO_CLASS_DRIVER_AUTOFLUSH)
- MIDI_Device_Flush(MIDIInterfaceInfo);
+ Endpoint_SelectEndpoint(MIDIInterfaceInfo->Config.DataINEndpoint.Address);
+
+ if (Endpoint_IsINReady())
+ MIDI_Device_Flush(MIDIInterfaceInfo);
#endif
}