diff options
| author | Peter Lawrence <[email protected]> | 2020-03-15 18:32:02 -0500 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2020-03-15 18:32:02 -0500 |
| commit | aafddfe637cf2dadf82075b59b18aad6a722caaa (patch) | |
| tree | 1414abf28d2fb685ab317148fe3e5ee8991fec5f /src/class/cdc | |
| parent | e7efcb6fd57b689d25a3b42d01c14ffe39e76500 (diff) | |
following suggestion by @kasjer
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 73eafab07..51c69423e 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -413,7 +413,7 @@ bool cdcd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_ // Though maybe the baudrate is not really important !!! if ( ep_addr == p_cdc->ep_in ) { - if ( xferred_bytes && (0 == (xferred_bytes % CFG_TUD_CDC_EPSIZE)) ) usbd_edpt_xfer(TUD_OPT_RHPORT, p_cdc->ep_in, NULL, 0); + if ( xferred_bytes && (0 == (xferred_bytes % CFG_TUD_CDC_EPSIZE)) && (0 == p_cdc->tx_ff.count) ) usbd_edpt_xfer(TUD_OPT_RHPORT, p_cdc->ep_in, NULL, 0); } // nothing to do with notif endpoint for now |
