Skip to content

Commit 6bdb707

Browse files
committed
uses Transport::thruActivated for initial thru state
1 parent 2ae9d9e commit 6bdb707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MIDI.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void MidiInterface<Transport, Settings, Platform>::begin(Channel inChannel)
9191
mMessage.data2 = 0;
9292
mMessage.length = 0;
9393

94-
mThruFilterCallback = thruOn;
94+
mThruFilterCallback = Transport::thruActivated ? thruOn : thruOff;
9595
mThruMapCallback = thruEcho;
9696
}
9797

@@ -1371,7 +1371,7 @@ inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
13711371
template<class Transport, class Settings, class Platform>
13721372
void MidiInterface<Transport, Settings, Platform>::processThru()
13731373
{
1374-
if (!mThruFilterCallback(mMessage))
1374+
if (!Transport::thruActivated || !mThruFilterCallback(mMessage))
13751375
return;
13761376

13771377
MidiMessage thruMessage = mThruMapCallback(mMessage);

0 commit comments

Comments
 (0)