Fix thruFilter bug from #45.

This commit is contained in:
Francois Best 2016-10-07 00:49:50 +02:00
parent a8e5b0ba15
commit 489b49b862
1 changed files with 2 additions and 2 deletions

View File

@ -1289,8 +1289,8 @@ void MidiInterface<SerialPort, Settings>::thruFilter(Channel inChannel)
// First, check if the received message is Channel
if (mMessage.type >= NoteOff && mMessage.type <= PitchBend)
{
const bool filter_condition = ((mMessage.channel == mInputChannel) ||
(mInputChannel == MIDI_CHANNEL_OMNI));
const bool filter_condition = ((mMessage.channel == inChannel) ||
(inChannel == MIDI_CHANNEL_OMNI));
// Now let's pass it to the output
switch (mThruFilterMode)