Browse Source

Only auto-flush seremu when buffer contains partial packet

main
PaulStoffregen 4 years ago
parent
commit
2c9c826b17
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy4/usb_seremu.c

+ 1
- 0
teensy4/usb_seremu.c View File

static void usb_seremu_flush_callback(void) static void usb_seremu_flush_callback(void)
{ {
if (tx_noautoflush) return; if (tx_noautoflush) return;
if (tx_available == 0 || tx_available >= SEREMU_TX_SIZE) return;
tx_zero_pad(); tx_zero_pad();
tx_queue_transfer(); tx_queue_transfer();
} }

Loading…
Cancel
Save