Fixed MIDI Device Class driver not sending/receiving MIDI packets of the correct...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Device / MIDI.c
index 79d9e74..eede480 100644 (file)
@@ -81,7 +81,7 @@ uint8_t MIDI_Device_SendEventPacket(USB_ClassInfo_MIDI_Device_t* const MIDIInter
        {\r
                uint8_t ErrorCode;\r
 \r
-               if ((ErrorCode = Endpoint_Write_Stream_LE(Event, sizeof(Event), NO_STREAM_CALLBACK)) != ENDPOINT_RWSTREAM_NoError)\r
+               if ((ErrorCode = Endpoint_Write_Stream_LE(Event, sizeof(MIDI_EventPacket_t), NO_STREAM_CALLBACK)) != ENDPOINT_RWSTREAM_NoError)\r
                  return ErrorCode;\r
 \r
                Endpoint_ClearIN();\r
@@ -100,7 +100,7 @@ bool MIDI_Device_ReceiveEventPacket(USB_ClassInfo_MIDI_Device_t* const MIDIInter
        if (!(Endpoint_IsReadWriteAllowed()))\r
          return false;\r
 \r
-       Endpoint_Read_Stream_LE(Event, sizeof(Event), NO_STREAM_CALLBACK);\r
+       Endpoint_Read_Stream_LE(Event, sizeof(MIDI_EventPacket_t), NO_STREAM_CALLBACK);\r
        Endpoint_ClearOUT();\r
        \r
        return true;\r