Skip to content

Commit c9ef617

Browse files
committed
portentac33: add sleep to avoid dfu protocol error
1 parent 7bdf924 commit c9ef617

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/USB.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ void arduino::SerialUSB_::baudChangeHandler(const struct device *dev, uint32_t r
2727

2828
#if defined(CONFIG_USB_DEVICE_STACK_NEXT)
2929
int arduino::SerialUSB_::usb_disable() {
30+
//To avoid Cannot perform port reset: 1200-bps touch: setting DTR to OFF: protocol error
31+
k_sleep(K_MSEC(100));
3032
return usbd_disable(Serial._usbd);
3133
}
3234

0 commit comments

Comments
 (0)