Skip to content

Commit a9664ef

Browse files
committed
fix: Use SysEx size in Settings
1 parent 7a96fec commit a9664ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MIDI.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,15 +1005,15 @@ bool MidiInterface<Transport, Settings, Platform>::parse()
10051005
if ((mPendingMessage[0] == SystemExclusiveStart)
10061006
|| (mPendingMessage[0] == SystemExclusiveEnd))
10071007
{
1008-
auto lastByte = mMessage.sysexArray[DefaultSettings::SysExMaxSize - 1];
1009-
mMessage.sysexArray[DefaultSettings::SysExMaxSize - 1] = SystemExclusiveStart;
1008+
auto lastByte = mMessage.sysexArray[Settings::SysExMaxSize - 1];
1009+
mMessage.sysexArray[Settings::SysExMaxSize - 1] = SystemExclusiveStart;
10101010
mMessage.type = SystemExclusive;
10111011

10121012
// Get length
1013-
mMessage.data1 = DefaultSettings::SysExMaxSize & 0xff; // LSB
1014-
mMessage.data2 = byte(DefaultSettings::SysExMaxSize >> 8); // MSB
1013+
mMessage.data1 = Settings::SysExMaxSize & 0xff; // LSB
1014+
mMessage.data2 = byte(Settings::SysExMaxSize >> 8); // MSB
10151015
mMessage.channel = 0;
1016-
mMessage.length = DefaultSettings::SysExMaxSize;
1016+
mMessage.length = Settings::SysExMaxSize;
10171017
mMessage.valid = true;
10181018

10191019
// No need to check against the inputChannel,

0 commit comments

Comments
 (0)