Skip to content

Commit 50477ae

Browse files
committed
fix closing and reopening the serial interface
1 parent 4f2c0ab commit 50477ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/arduino/Adafruit_USBD_CDC.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ void Adafruit_USBD_CDC::end(void) {
9494
// Reset configuration descriptor without Serial as CDC
9595
TinyUSBDevice.clearConfiguration();
9696
_instance_count = 0;
97+
_instance = INVALID_INSTANCE;
9798
}
9899

99100
uint32_t Adafruit_USBD_CDC::baud(void) {

0 commit comments

Comments
 (0)