add tud_ready() check in tud_cdc_n_write_flush()

other clean up
This commit is contained in:
hathach
2020-11-23 23:40:13 +07:00
parent 308028e17c
commit 4b4f880785
4 changed files with 15 additions and 18 deletions

View File

@@ -607,7 +607,7 @@ bool tu_fifo_clear(tu_fifo_t *f)
Overwritable mode the fifo is set to
*/
/******************************************************************************/
bool tu_fifo_set_mode(tu_fifo_t *f, bool overwritable)
bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable)
{
tu_fifo_lock(f);