Update MIDI.hpp
- added if statement asking for "useRunningStatus", as it caused a bug with a certain midi device, causing the arduino to resolve the same midi data multiple times. I think it was forgotten here, as the comment also suggests that this section is only for "if enabled..."
This commit is contained in:
parent
2ffbdef8da
commit
de8e227af0
|
|
@ -911,6 +911,8 @@ bool MidiInterface<SerialPort, Settings>::parse()
|
||||||
mMessage.valid = true;
|
mMessage.valid = true;
|
||||||
|
|
||||||
// Activate running status (if enabled for the received type)
|
// Activate running status (if enabled for the received type)
|
||||||
|
if (Settings::UseRunningStatus) {
|
||||||
|
|
||||||
switch (mMessage.type)
|
switch (mMessage.type)
|
||||||
{
|
{
|
||||||
case NoteOff:
|
case NoteOff:
|
||||||
|
|
@ -929,6 +931,13 @@ bool MidiInterface<SerialPort, Settings>::parse()
|
||||||
mRunningStatus_RX = InvalidType;
|
mRunningStatus_RX = InvalidType;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
mRunningStatus_RX = InvalidType;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue