Cleanup
This commit is contained in:
parent
e3dd2272e2
commit
1813094735
|
|
@ -509,9 +509,7 @@ inline bool MidiInterface<SerialPort>::read(Channel inChannel)
|
||||||
template<class SerialPort>
|
template<class SerialPort>
|
||||||
bool MidiInterface<SerialPort>::parse()
|
bool MidiInterface<SerialPort>::parse()
|
||||||
{
|
{
|
||||||
const byte bytes_available = mSerial.available();
|
if (mSerial.available() == 0)
|
||||||
|
|
||||||
if (bytes_available == 0)
|
|
||||||
// No data available.
|
// No data available.
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
@ -779,9 +777,6 @@ bool MidiInterface<SerialPort>::parse()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// What are our chances to fall here?
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private method, see midi_Settings.h for documentation
|
// Private method, see midi_Settings.h for documentation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue