Skip to content

Commit

Permalink
Merge pull request #512 from mzero/fix-midi-sysex
Browse files Browse the repository at this point in the history
Fix a bug in writing SysEx messages.
  • Loading branch information
hathach authored Sep 23, 2020
2 parents 9a0a78c + 3b0216d commit 8b2c822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class/midi/midi_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8b2c822

Please sign in to comment.