changed conditional in checkMidi() to bitmask
This commit is contained in:
parent
2c493f7dec
commit
0ec9332d97
@ -49,7 +49,7 @@ void MMidi::checkMidi()
|
||||
while(Serial.available() > 0) {
|
||||
|
||||
data = Serial.read();
|
||||
if(data > 127) { // bitmask with 10000000 to see if byte is over 127 | data & 0x80
|
||||
if(data & 0x80) { // bitmask with 10000000 to see if byte is over 127 | data & 0x80
|
||||
midiBufferIndex = 0;
|
||||
}
|
||||
midiBuffer[midiBufferIndex] = data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user