Explorar el Código

USB MIDI - don't hog transmit buffers

main
PaulStoffregen hace 6 años
padre
commit
87f6186546
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      teensy3/usb_midi.c

+ 2
- 2
teensy3/usb_midi.c Ver fichero

} else { } else {
tx_packet->len = MIDI_TX_SIZE; tx_packet->len = MIDI_TX_SIZE;
usb_tx(MIDI_TX_ENDPOINT, tx_packet); usb_tx(MIDI_TX_ENDPOINT, tx_packet);
tx_packet = usb_malloc();
tx_packet = NULL;
} }
tx_noautoflush = 0; tx_noautoflush = 0;
} }
if (tx_noautoflush == 0 && tx_packet && tx_packet->index > 0) { if (tx_noautoflush == 0 && tx_packet && tx_packet->index > 0) {
tx_packet->len = tx_packet->index * 4; tx_packet->len = tx_packet->index * 4;
usb_tx(MIDI_TX_ENDPOINT, tx_packet); usb_tx(MIDI_TX_ENDPOINT, tx_packet);
tx_packet = usb_malloc();
tx_packet = NULL;
} }
} }



Cargando…
Cancelar
Guardar