mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 14:33:07 +01:00
#81: directly flush the tx fifo for USBCDC if connection is hanging
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user