Fixed MIDI.read with input channel parameter.

This commit is contained in:
Francois Best 2016-04-03 17:58:00 +02:00
parent fb693e7245
commit 219797524d
1 changed files with 2 additions and 2 deletions

View File

@ -797,8 +797,8 @@ inline bool MidiInterface<SerialPort, Settings>::inputFilter(Channel inChannel)
if (mMessage.type >= NoteOff && mMessage.type <= PitchBend) if (mMessage.type >= NoteOff && mMessage.type <= PitchBend)
{ {
// Then we need to know if we listen to it // Then we need to know if we listen to it
if ((mMessage.channel == mInputChannel) || if ((mMessage.channel == inChannel) ||
(mInputChannel == MIDI_CHANNEL_OMNI)) (inChannel == MIDI_CHANNEL_OMNI))
{ {
return true; return true;
} }