diff options
Diffstat (limited to 'backends/midi/seq.cpp')
-rw-r--r-- | backends/midi/seq.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/midi/seq.cpp b/backends/midi/seq.cpp index 8052344879..66ba88a4b1 100644 --- a/backends/midi/seq.cpp +++ b/backends/midi/seq.cpp @@ -141,15 +141,12 @@ void MidiDriver_SEQ::send(uint32 b) { } void MidiDriver_SEQ::sysEx (const byte *msg, uint16 length) { - if (length > 254) { - warning ("Cannot send SysEx block - data too large"); - return; - } - unsigned char buf [1024]; int position = 0; const byte *chr = msg; + assert(length + 2 <= 256); + buf[position++] = SEQ_MIDIPUTC; buf[position++] = 0xF0; buf[position++] = _device_num; |