From 652c39048369df09972eba7212ceda4849d1efa1 Mon Sep 17 00:00:00 2001 From: lathoub Date: Tue, 3 Aug 2021 21:39:38 +0200 Subject: [PATCH] Update BLEMIDI_Transport.h cleanup --- src/BLEMIDI_Transport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BLEMIDI_Transport.h b/src/BLEMIDI_Transport.h index df7c91f..2aaa121 100644 --- a/src/BLEMIDI_Transport.h +++ b/src/BLEMIDI_Transport.h @@ -314,8 +314,8 @@ public: case MIDI_NAMESPACE::MidiType::SystemExclusive: // do we have a complete sysex? - if ((rPtr + 1 < length) && (buffer[rPtr + 1] == 0xF7)) - rPtr--; + if ((rPtr + 1 < length) && (buffer[rPtr + 1] == MIDI_NAMESPACE::MidiType::SystemExclusiveEnd)) + rPtr--; // before end is the timestampLow mBleClass.add(buffer[lPtr]); for (byte i = lPtr; i < rPtr; i++)