Skip to content

Commit dd343ba

Browse files
authored
Merge pull request #156 from adafruit/fix-serial-end
fix closing and reopening the serial interface
2 parents 4f2c0ab + 50477ae commit dd343ba

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)