summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-10-05 21:35:40 +0700
committerhathach <[email protected]>2018-10-05 21:35:40 +0700
commit33c61bfda2c3aada3cb06d36e12d7cf57da02037 (patch)
tree9beb67bb0a0698a1d87caf99d069e500c37eac94 /src/class/cdc
parenta660fb0cfc8641d5645d1cdea76027266b278388 (diff)
comment out cdc flush on write (for now). Since it has issue with circuitpython
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c
index 2215e00ea..70d51c258 100644
--- a/src/class/cdc/cdc_device.c
+++ b/src/class/cdc/cdc_device.c
@@ -153,11 +153,13 @@ uint32_t tud_cdc_n_write(uint8_t itf, void const* buffer, uint32_t bufsize)
{
uint16_t ret = tu_fifo_write_n(&_cdcd_itf[itf].tx_ff, buffer, bufsize);
+#if 0 // TODO issue with circuitpython's REPL
// flush if queue more than endpoint size
if ( tu_fifo_count(&_cdcd_itf[itf].tx_ff) >= CFG_TUD_CDC_EPSIZE )
{
tud_cdc_n_write_flush(itf);
}
+#endif
return ret;
}