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;