FortySevenEffects / arduino_midi_library

MIDI for Arduino
MIT License
1.56k stars 252 forks source link

Fix for wrong size of message.length #337

Open rbarreiros opened 8 months ago

rbarreiros commented 8 months ago

Initialize message.length on first packet (don't leave it at 0) and fix for 2 packet message sizes. I noticed that the end of message is already covered with setting message length with the mPendingMessageExpectedLength as it should, and that there's a check if the message is realtime, as send() in master branch calls getStatus() which screws up realtime midi messages (0xf8).