diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 264eeaa..bb315eb 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -509,9 +509,7 @@ inline bool MidiInterface::read(Channel inChannel) template bool MidiInterface::parse() { - const byte bytes_available = mSerial.available(); - - if (bytes_available == 0) + if (mSerial.available() == 0) // No data available. return false; @@ -779,9 +777,6 @@ bool MidiInterface::parse() #endif } } - - // What are our chances to fall here? - return false; } // Private method, see midi_Settings.h for documentation