From 5458c8deb66e246eb292836137db2d927c671106 Mon Sep 17 00:00:00 2001 From: kiran Date: Sat, 2 Mar 2024 15:35:24 +0000 Subject: [PATCH] fix: HWCDC removed clearing USB Serial/JTAG interrupts during begin (#9316) (cherry picked from commit d70f57f00a8b14defadf04734501777618eacf01) --- cores/esp32/HWCDC.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cores/esp32/HWCDC.cpp b/cores/esp32/HWCDC.cpp index 5dcc1b4b567..b97e32daf4c 100644 --- a/cores/esp32/HWCDC.cpp +++ b/cores/esp32/HWCDC.cpp @@ -186,7 +186,6 @@ void HWCDC::begin(unsigned long baud) } } usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK); - usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK); usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET); if(!intr_handle && esp_intr_alloc(ETS_USB_SERIAL_JTAG_INTR_SOURCE, 0, hw_cdc_isr_handler, NULL, &intr_handle) != ESP_OK){ isr_log_e("HW USB CDC failed to init interrupts");