Skip to content

Commit

Permalink
Add option to make CDC TX buffer persistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed May 7, 2024
1 parent 1fdf290 commit 3eb9a35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/class/cdc/cdc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ void cdcd_reset(uint8_t rhport)

tu_memclr(p_cdc, ITF_MEM_RESET_SIZE);
tu_fifo_clear(&p_cdc->rx_ff);
#if !CFG_TUD_CDC_PERSISTENT_TX_BUFF
tu_fifo_clear(&p_cdc->tx_ff);
#endif
tu_fifo_set_overwritable(&p_cdc->tx_ff, true);
}
}
Expand Down

0 comments on commit 3eb9a35

Please sign in to comment.