diff --git a/src/MIDI.cpp b/src/MIDI.cpp index 4d55be0..b8f1c0c 100644 --- a/src/MIDI.cpp +++ b/src/MIDI.cpp @@ -57,6 +57,7 @@ BEGIN_MIDI_NAMESPACE \param inLength The lenght of the input buffer. \return The lenght of the encoded output buffer. @see decodeSysEx + Code inspired from Ruin & Wesen's SysEx encoder/decoder - http://ruinwesen.com */ unsigned encodeSysEx(const byte* inData, byte* outSysEx, unsigned inLength) { @@ -93,6 +94,7 @@ unsigned encodeSysEx(const byte* inData, byte* outSysEx, unsigned inLength) \param inLength The lenght of the input buffer. \return The lenght of the output buffer. @see encodeSysEx @see getSysExArrayLength + Code inspired from Ruin & Wesen's SysEx encoder/decoder - http://ruinwesen.com */ unsigned decodeSysEx(const byte* inSysEx, byte* outData, unsigned inLength) { diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 641f706..2d1ed85 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -711,7 +711,7 @@ bool MidiInterface::parse() mPendingMessage[mPendingMessageIndex] = extracted; // Now we are going to check if we have reached the end of the message - if (mPendingMessageIndex >= (mPendingMessageExpectedLenght-1)) + if (mPendingMessageIndex >= (mPendingMessageExpectedLenght - 1)) { // "FML" case: fall down here with an overflown SysEx.. // This means we received the last possible data byte that can fit