uses Transport::thruActivated for initial thru state

This commit is contained in:
Eric Sherman 2021-08-06 10:41:05 -04:00
parent 2ae9d9e509
commit 6bdb70727f
No known key found for this signature in database
GPG Key ID: 5FF6E54D61748174
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void MidiInterface<Transport, Settings, Platform>::begin(Channel inChannel)
mMessage.data2 = 0;
mMessage.length = 0;
mThruFilterCallback = thruOn;
mThruFilterCallback = Transport::thruActivated ? thruOn : thruOff;
mThruMapCallback = thruEcho;
}
@ -1371,7 +1371,7 @@ inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
template<class Transport, class Settings, class Platform>
void MidiInterface<Transport, Settings, Platform>::processThru()
{
if (!mThruFilterCallback(mMessage))
if (!Transport::thruActivated || !mThruFilterCallback(mMessage))
return;
MidiMessage thruMessage = mThruMapCallback(mMessage);