Fix issue with CDC device demos causing broken communications when the device tries...
[pub/lufa.git] / Demos / Device / ClassDriver / MIDI / MIDI.c
index a6c31ee..fcb86d6 100644 (file)
@@ -52,11 +52,6 @@ USB_ClassInfo_MIDI_Device_t Keyboard_MIDI_Interface =
                                .DataOUTEndpointNumber    = MIDI_STREAM_OUT_EPNUM,\r
                                .DataOUTEndpointSize      = MIDI_STREAM_EPSIZE,\r
                        },\r
-                       \r
-               .State =\r
-                       {\r
-                               // Leave all state values to their defaults                     \r
-                       }\r
        };\r
 \r
 /** Main program entry point. This routine contains the overall program flow, including initial\r
@@ -72,6 +67,7 @@ int main(void)
        {\r
                CheckJoystickMovement();\r
                \r
+               /* Must acknowedge MIDI packets from the host even though they aren't used, or the host locks up */\r
                MIDI_EventPacket_t DummyMIDIEvent;\r
                MIDI_Device_ReceiveEventPacket(&Keyboard_MIDI_Interface, &DummyMIDIEvent);\r
        \r