Doc & coding style.

This commit is contained in:
Francois Best 2014-04-01 09:05:30 +02:00
parent b041abaca3
commit f197d9f439
2 changed files with 3 additions and 1 deletions

View File

@ -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)
{

View File

@ -711,7 +711,7 @@ bool MidiInterface<SerialPort>::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