From 8265d9342cffa3f317408d266aa6a22c73f5e05b Mon Sep 17 00:00:00 2001 From: andreas Date: Sat, 23 Nov 2024 20:59:25 +0100 Subject: [PATCH] #81: directly flush the tx fifo for USBCDC if connection is hanging --- lib/serial/GwSerial.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/serial/GwSerial.h b/lib/serial/GwSerial.h index f3712ab..5646299 100644 --- a/lib/serial/GwSerial.h +++ b/lib/serial/GwSerial.h @@ -94,6 +94,7 @@ template if (c->isConnected()){ //this retriggers the ISR usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY); + usb_serial_jtag_ll_txfifo_flush(); } } return rt;