Skip to content

Commit

Permalink
#81: directly flush the tx fifo for USBCDC if connection is hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Nov 23, 2024
1 parent 70fb1b3 commit 8265d93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/serial/GwSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8265d93

Please sign in to comment.