From d501f4bb3dfff548a7cef4d85371bec0b438bdd7 Mon Sep 17 00:00:00 2001 From: lathoub Date: Sat, 5 Jun 2021 08:55:25 +0200 Subject: [PATCH] end method for Serial Transport The Transport layer is started, but could never be stopped. This change will allow the underlying library to call the end() method in the Transport layers (all other Transport layer have the end() method implemented) Next step is to call the Transport end() method, when ending the MIDI instance --- src/serialMIDI.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/serialMIDI.h b/src/serialMIDI.h index 9bd9669..e69e9b2 100644 --- a/src/serialMIDI.h +++ b/src/serialMIDI.h @@ -63,6 +63,11 @@ public: #endif } + void end() + { + mSerial.end(); + } + bool beginTransmission(MidiType) { return true;