From f9bcac5e00c949ec23135208da3f02c027992782 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 20 Jul 2010 06:59:13 +0000 Subject: Fixed MIDI_Device_SendEventPacket() not correctly waiting for the endpoint to become ready (thanks to Robin Green). --- LUFA/Drivers/USB/Class/Device/MIDI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Drivers/USB/Class/Device/MIDI.c') diff --git a/LUFA/Drivers/USB/Class/Device/MIDI.c b/LUFA/Drivers/USB/Class/Device/MIDI.c index 966d72227..5703794ff 100644 --- a/LUFA/Drivers/USB/Class/Device/MIDI.c +++ b/LUFA/Drivers/USB/Class/Device/MIDI.c @@ -69,7 +69,7 @@ uint8_t MIDI_Device_SendEventPacket(USB_ClassInfo_MIDI_Device_t* const MIDIInter Endpoint_SelectEndpoint(MIDIInterfaceInfo->Config.DataINEndpointNumber); - if (Endpoint_IsReadWriteAllowed()); + if (Endpoint_IsReadWriteAllowed()) { uint8_t ErrorCode; -- cgit v1.2.3