diff options
| author | Ha Thach <[email protected]> | 2020-09-23 11:23:53 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-23 11:23:53 +0700 |
| commit | 8b2c82255750488232eae72f3d5dcbacfd6227f3 (patch) | |
| tree | 8b7177cc4ea97a2441c69ef700773e7cdf00b4c8 /src/class | |
| parent | 9a0a78c52e311f7dbf904d77be118c8a789f0c45 (diff) | |
| parent | 3b0216d3bfe568e949fe1ea7c2c9f3f3a8dc6a4b (diff) | |
Merge pull request #512 from mzero/fix-midi-sysex
Fix a bug in writing SysEx messages.
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/midi/midi_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/midi/midi_device.c b/src/class/midi/midi_device.c index 00b1bde92..de05d93d1 100644 --- a/src/class/midi/midi_device.c +++ b/src/class/midi/midi_device.c @@ -193,7 +193,7 @@ uint32_t tud_midi_n_write(uint8_t itf, uint8_t jack_id, uint8_t const* buffer, u if (data == 0xf7) { midi->write_buffer[0] = 0x5; } else { - midi->write_buffer_length = 4; + midi->write_target_length = 4; } } else if ((msg >= 0x8 && msg <= 0xB) || msg == 0xE) { midi->write_buffer[0] = jack_id << 4 | msg; |
