ソースを参照

USB MIDI - don't hog transmit buffers

teensy4-core
PaulStoffregen 6年前
コミット
87f6186546
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      teensy3/usb_midi.c

+ 2
- 2
teensy3/usb_midi.c ファイルの表示

} 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;
} }
} }



読み込み中…
キャンセル
保存