Update MIDI.hpp
This commit is contained in:
parent
2ffbdef8da
commit
f905cba68c
|
|
@ -911,6 +911,8 @@ bool MidiInterface<SerialPort, Settings>::parse()
|
|||
mMessage.valid = true;
|
||||
|
||||
// Activate running status (if enabled for the received type)
|
||||
if (Settings::UseRunningStatus) {
|
||||
|
||||
switch (mMessage.type)
|
||||
{
|
||||
case NoteOff:
|
||||
|
|
@ -929,6 +931,13 @@ bool MidiInterface<SerialPort, Settings>::parse()
|
|||
mRunningStatus_RX = InvalidType;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
mRunningStatus_RX = InvalidType;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue