Don't check for overflow (the serial class should do it).
This commit is contained in:
parent
00adafc5e2
commit
e4c8205dc3
|
|
@ -534,13 +534,6 @@ bool MIDI_Class::parse(byte inChannel)
|
|||
// No data available.
|
||||
return false;
|
||||
|
||||
// If the buffer is full -> Don't Panic! Call the Vogons to destroy it.
|
||||
if (bytes_available == UART::bufferSize)
|
||||
{
|
||||
PRINT_DEBUG("MIDI Overflow");
|
||||
MIDI_SERIAL_PORT.flush();
|
||||
}
|
||||
else {
|
||||
|
||||
/* Parsing algorithm:
|
||||
Get a byte from the serial buffer.
|
||||
|
|
@ -796,8 +789,6 @@ bool MIDI_Class::parse(byte inChannel)
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// What are our chances to fall here?
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue