We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5000939 commit a0c7b41Copy full SHA for a0c7b41
cores/esp32/HWCDC.cpp
@@ -376,8 +376,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size)
376
if(isConnected) usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY);
377
}
378
379
- // there is no more space in CDC Endpoint FIFO. It is very possible that CDC is diconnected!
380
- // ==> flush all data from TX buffer and only keep last written data
+ // CDC is diconnected ==> flush all data from TX buffer
381
if(to_send && !usb_serial_jtag_ll_txfifo_writable()) {
382
isConnected = false; // we consider that CDC connection has been terminated
383
flushTXBuffer(); // flush TX Ringbuffer
0 commit comments