projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host interface...
[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
3d844c2
..
cf59193
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/MIDI.c
+++ b/
LUFA/Drivers/USB/Class/Host/MIDI.c
@@
-143,7
+143,7
@@
static uint8_t DCOMP_MIDI_Host_NextMIDIStreamingDataEndpoint(void* const Current
uint8_t MIDI_Host_Flush(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceInfo)
{
uint8_t MIDI_Host_Flush(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceInfo)
{
- if (
USB_HostState != HOST_STATE_Configured
)
+ if (
(USB_HostState != HOST_STATE_Configured) || !(MIDIInterfaceInfo->State.IsActive)
)
return PIPE_RWSTREAM_DeviceDisconnected;
uint8_t ErrorCode;
return PIPE_RWSTREAM_DeviceDisconnected;
uint8_t ErrorCode;