Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB CDC: avoid hung devices when USB host is not connected
see espressif/arduino-esp32#9043 " The S3, C3, C6 and H2 that have HW CDC JTAG USB port may cause a delay when using HWCDC in Serial by activating CDC on Boot and selecting the USB Mode for Hardware CDC and JTAG. This happens when no USB application in USB Host side is started to receive the data sent by the ESP32xx. The USB CDC buffer gets full and the Arduino HW CDC layer will timeout, by default 100ms, until give up trying to send the CDC data. As a workaround, it is necessary to use HWCDC::setTxTimeoutMs(timeout_ms) and set it to zero. "
- Loading branch information