Skip to content

Commit 2197975

Browse files
author
Francois Best
committed
Fixed MIDI.read with input channel parameter.
1 parent fb693e7 commit 2197975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MIDI.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ inline bool MidiInterface<SerialPort, Settings>::inputFilter(Channel inChannel)
797797
if (mMessage.type >= NoteOff && mMessage.type <= PitchBend)
798798
{
799799
// Then we need to know if we listen to it
800-
if ((mMessage.channel == mInputChannel) ||
801-
(mInputChannel == MIDI_CHANNEL_OMNI))
800+
if ((mMessage.channel == inChannel) ||
801+
(inChannel == MIDI_CHANNEL_OMNI))
802802
{
803803
return true;
804804
}

0 commit comments

Comments
 (0)