#81: directly flush the tx fifo for USBCDC if connection is hanging

This commit is contained in:
andreas 2024-11-23 20:59:25 +01:00
parent 70fb1b3633
commit 8265d9342c
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ template<typename T>
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;