diff options
| author | Saulo VerĂssimo <[email protected]> | 2026-05-16 12:59:44 -0300 |
|---|---|---|
| committer | Saulo VerĂssimo <[email protected]> | 2026-05-16 12:59:44 -0300 |
| commit | 840f3e0a628e69a2b7fb4136b2dca8ab5b350f83 (patch) | |
| tree | d1bd9c4b2d6fb8a8d54d630f7b613611ded70ca1 /examples | |
| parent | 0af0665ed65ef9574a4c3c2da83c1c502cb713de (diff) | |
midi2: prevent UMP packet split across USB transfers
The edpt_stream auto-flush is byte-oriented and could cut an UMP message
in half when the FIFO reached wMaxPacketSize, corrupting the peer's RX
context. Pre-flush whole packets before writing one that would cross the
boundary on both device (tud_midi2_n_ump_write) and host
(tuh_midi2_ump_write) paths. Host write also becomes packet-aware
instead of word-by-word.
Ref #3571
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
