From bada92b405db45b2fa47a07d03fdf9c5bd530366 Mon Sep 17 00:00:00 2001
From: Jason2866 <24528715+Jason2866@users.noreply.github.com>
Date: Fri, 22 Mar 2024 20:20:16 +0100
Subject: [PATCH] Comment usb_serial_jtag_ll_txfifo_flush() ->
 https://github.com/espressif/arduino-esp32/issues/9378#issuecomment-2013740414

---
 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);
         }
     }