From 18130947350b1a1b8c9ce2f47bbf47dbc3c4c6d9 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Wed, 16 Apr 2014 08:33:38 +0200 Subject: [PATCH] Cleanup --- src/MIDI.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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