From 311341ce5dd8b73a06acb22718526fdfc891c043 Mon Sep 17 00:00:00 2001 From: TD-er Date: Fri, 22 Mar 2024 13:21:13 +0100 Subject: [PATCH] [HWCDC.cpp] Comment usb_serial_jtag_ll_txfifo_flush(); --- cores/esp32/HWCDC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp32/HWCDC.cpp b/cores/esp32/HWCDC.cpp index c5dd27891d8..d01a90d6005 100644 --- a/cores/esp32/HWCDC.cpp +++ b/cores/esp32/HWCDC.cpp @@ -380,7 +380,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) to_send -= space; so_far += space; // Now trigger the ISR to read data from the ring buffer. - usb_serial_jtag_ll_txfifo_flush(); +// usb_serial_jtag_ll_txfifo_flush(); if(connected) usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY); while(to_send){ @@ -396,7 +396,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size) so_far += space; to_send -= space; // Now trigger the ISR to read data from the ring buffer. - usb_serial_jtag_ll_txfifo_flush(); +// usb_serial_jtag_ll_txfifo_flush(); if(connected) usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY); } }