No need for channel info when parsing.
This commit is contained in:
parent
6fbc9bd5a7
commit
1d10ce0a46
|
|
@ -118,7 +118,7 @@ public:
|
|||
|
||||
private:
|
||||
bool inputFilter(Channel inChannel);
|
||||
bool parse(Channel inChannel);
|
||||
bool parse();
|
||||
void resetInput();
|
||||
|
||||
private:
|
||||
|
|
|
|||
10
src/MIDI.hpp
10
src/MIDI.hpp
|
|
@ -470,7 +470,7 @@ bool MidiInterface<SerialPort>::read(Channel inChannel)
|
|||
if (inChannel >= MIDI_CHANNEL_OFF)
|
||||
return false; // MIDI Input disabled.
|
||||
|
||||
if (parse(inChannel))
|
||||
if (parse())
|
||||
{
|
||||
if (inputFilter(inChannel))
|
||||
{
|
||||
|
|
@ -493,8 +493,8 @@ bool MidiInterface<SerialPort>::read(Channel inChannel)
|
|||
|
||||
// Private method: MIDI parser
|
||||
template<class SerialPort>
|
||||
bool MidiInterface<SerialPort>::parse(Channel inChannel)
|
||||
{
|
||||
bool MidiInterface<SerialPort>::parse()
|
||||
{
|
||||
const byte bytes_available = mSerial.available();
|
||||
|
||||
if (bytes_available == 0)
|
||||
|
|
@ -624,7 +624,7 @@ bool MidiInterface<SerialPort>::parse(Channel inChannel)
|
|||
#else
|
||||
// Call the parser recursively
|
||||
// to parse the rest of the message.
|
||||
return parse(inChannel);
|
||||
return parse();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
@ -762,7 +762,7 @@ bool MidiInterface<SerialPort>::parse(Channel inChannel)
|
|||
#else
|
||||
// Call the parser recursively
|
||||
// to parse the rest of the message.
|
||||
return parse(inChannel);
|
||||
return parse();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue