Skip to content

Commit d4eca05

Browse files
authored
Update cores/esp32/HWCDC.cpp
1 parent a0c7b41 commit d4eca05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/HWCDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size)
378378
}
379379
// CDC is diconnected ==> flush all data from TX buffer
380380
if(to_send && !usb_serial_jtag_ll_txfifo_writable()) {
381-
isConnected = false; // we consider that CDC connection has been terminated
381+
isConnected = false;
382382
flushTXBuffer(); // flush TX Ringbuffer
383383
}
384384
xSemaphoreGive(tx_lock);

0 commit comments

Comments
 (0)