{\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
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