Skip to content

Commit 99a981b

Browse files
author
lathoub
committed
thruActivated as a property of the Transport layer
1 parent 419c74a commit 99a981b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/MIDI.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void MidiInterface<Transport, Settings, Platform>::begin(Channel inChannel)
9494
mMessage.length = 0;
9595

9696
mThruFilterMode = Thru::Full;
97-
mThruActivated = true;
97+
mThruActivated = mTransport.thruActivated;
9898
}
9999

100100
// -----------------------------------------------------------------------------

src/serialMIDI.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class SerialMIDI
5151
};
5252

5353
public:
54-
void begin()
54+
static const bool thruActivated = false;
55+
56+
void begin()
5557
{
5658
// Initialise the Serial port
5759
#if defined(AVR_CAKE)

0 commit comments

Comments
 (0)