mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 07:11:16 +08:00
Fix midi sysex sending bug
This commit is contained in:
parent
40870f9037
commit
c4f7ea09f1
@ -192,6 +192,7 @@ uint32_t tud_midi_n_write(uint8_t itf, uint8_t jack_id, uint8_t const* buffer, u
|
|||||||
if (midi->write_buffer[0] == 0x4) {
|
if (midi->write_buffer[0] == 0x4) {
|
||||||
if (data == 0xf7) {
|
if (data == 0xf7) {
|
||||||
midi->write_buffer[0] = 0x5;
|
midi->write_buffer[0] = 0x5;
|
||||||
|
midi->write_target_length = 2;
|
||||||
} else {
|
} else {
|
||||||
midi->write_target_length = 4;
|
midi->write_target_length = 4;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user