mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-10-30 10:12:41 +01:00
#81: directly flush the tx fifo for USBCDC if connection is hanging
This commit is contained in:
1 parent
70fb1b3633
commit
8265d9342c
1 file changed
+1
@@ -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