summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorMark Lentczner <[email protected]>2020-09-13 15:05:18 -0700
committerGitHub <[email protected]>2020-09-13 15:05:18 -0700
commit3b0216d3bfe568e949fe1ea7c2c9f3f3a8dc6a4b (patch)
tree81d75b050ebcc3ebc6feba2f21b0f6478011dce8 /src/device
parent3d393df2d0647a4482f81253574446186c9d99e0 (diff)
Update midi_device.c
Fix a bug in writing SysEx messages. At the start of a new USB packet (4 bytes), while in the middle of a SysEx, the code mistakenly set the buffer length to 4, not the target length. As a consequence, the 3rd and 4th bytes from the last packet were included, after every byte of the SysEx after the first packet of three. The fix is simple, as it was just a typo, as can bee seen from the other branches in the same section of if/else statements: At the start of a new packet, the code should set up the target length... the buffer length should be left at 2 (as set on line 180).
Diffstat (limited to 'src/device')
0 files changed, 0 insertions, 0 deletions