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 d9e5a6f commit d40f66eCopy full SHA for d40f66e
cores/esp32/HWCDC.cpp
@@ -242,6 +242,12 @@ void HWCDC::begin(unsigned long baud)
242
log_e("HW CDC TX Buffer error");
243
}
244
245
+
246
+#if CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
247
+// it needs the HW Serial pins to be first deinited in order to allow `if(Serial)` to work :-(
248
+ deinit(NULL);
249
+ delay(10);
250
+#endif
251
// Setting USB D+ D- pins || reduces number of debug messages
252
uint8_t pin = USB_DM_GPIO_NUM;
253
if(perimanGetPinBusType(pin) != ESP32_BUS_TYPE_USB_DM){
0 commit comments