Skip to content

Commit 9e9099e

Browse files
committed
Fixes reset when 2x call to end()
1 parent 70d7983 commit 9e9099e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cores/esp32/USBCDC.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ void USBCDC::end()
148148
setRxBufferSize(0);
149149
if(tx_lock != NULL) {
150150
vSemaphoreDelete(tx_lock);
151+
tx_lock = NULL;
151152
}
152153
}
153154

0 commit comments

Comments
 (0)