From 99a981be5e9295a9b96ce54b20f7aa9570d7126a Mon Sep 17 00:00:00 2001 From: lathoub Date: Thu, 23 Apr 2020 22:08:15 +0200 Subject: [PATCH] thruActivated as a property of the Transport layer --- src/MIDI.hpp | 2 +- src/serialMIDI.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 07588cb..1731916 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -94,7 +94,7 @@ void MidiInterface::begin(Channel inChannel) mMessage.length = 0; mThruFilterMode = Thru::Full; - mThruActivated = true; + mThruActivated = mTransport.thruActivated; } // ----------------------------------------------------------------------------- diff --git a/src/serialMIDI.h b/src/serialMIDI.h index b57d35c..4b67115 100644 --- a/src/serialMIDI.h +++ b/src/serialMIDI.h @@ -51,7 +51,9 @@ public: }; public: - void begin() + static const bool thruActivated = false; + + void begin() { // Initialise the Serial port #if defined(AVR_CAKE)