aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/MIDI.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-10-12 13:52:06 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-10-12 13:52:06 +0000
commita8871c7fba73307226bd13e2cad4c840c850e6f1 (patch)
treef4fbf7ee0d3809592f0ecd0c46b43d3d01b40a51 /LUFA/Drivers/USB/Class/Host/MIDI.c
parent3693916cd38bd919f07fe45a2f9d19f5f689242f (diff)
downloadlufa-a8871c7fba73307226bd13e2cad4c840c850e6f1.tar.gz
lufa-a8871c7fba73307226bd13e2cad4c840c850e6f1.tar.bz2
lufa-a8871c7fba73307226bd13e2cad4c840c850e6f1.zip
Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host interface was not configured.
Small documentation improvements to explicitly reference tokens in Doxygen, to ensure that they are converted to cross-reference links in the output files.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/MIDI.c')
-rw-r--r--LUFA/Drivers/USB/Class/Host/MIDI.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/MIDI.c b/LUFA/Drivers/USB/Class/Host/MIDI.c
index 3d844c2b3..cf59193c2 100644
--- 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)
{
- if (USB_HostState != HOST_STATE_Configured)
+ if ((USB_HostState != HOST_STATE_Configured) || !(MIDIInterfaceInfo->State.IsActive))
return PIPE_RWSTREAM_DeviceDisconnected;
uint8_t ErrorCode;