Skip to content

Commit c0a6651

Browse files
franky47lathoub
andauthored
thruActivated as a property of the Transport layer (#148)
* thruActivated as a property of the Transport layer * thruActivated defaults to true Co-authored-by: lathoub <[email protected]>
2 parents 419c74a + a5e31f1 commit c0a6651

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 = true;
55+
56+
void begin()
5557
{
5658
// Initialise the Serial port
5759
#if defined(AVR_CAKE)

0 commit comments

Comments
 (0)