Now should check that space is greater than 3 as before using stale value of space_left.

This commit is contained in:
Russell Gallop
2011-08-12 11:42:21 +01:00
parent 3d7a88b1fc
commit f9308d97c7

View File

@@ -257,7 +257,7 @@ void usb_midi(in port ?p_midi_in, out port ?p_midi_out,
outputting_symbol = dequeue(symbol_fifo);
symbol = makeSymbol(outputting_symbol);
if (space(symbol_fifo) > 2 && midi_from_host_overflow) {
if (space(symbol_fifo) > 3 && midi_from_host_overflow) {
midi_from_host_overflow = 0;
midi_send_ack(c_midi);
}