Don't check for overflow (the serial class should do it).

This commit is contained in:
Francois Best 2012-06-17 22:36:51 +02:00
parent 00adafc5e2
commit e4c8205dc3
1 changed files with 220 additions and 229 deletions

View File

@ -534,13 +534,6 @@ bool MIDI_Class::parse(byte inChannel)
// No data available. // No data available.
return false; 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: /* Parsing algorithm:
Get a byte from the serial buffer. Get a byte from the serial buffer.
@ -796,8 +789,6 @@ bool MIDI_Class::parse(byte inChannel)
} }
}
// What are our chances to fall here? // What are our chances to fall here?
return false; return false;
} }