Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc7c528

Browse files
committed
portentac33: add sleep to avoid dfu protocol error
1 parent314a367 commitfc7c528

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
@@ -29,6 +29,8 @@ void arduino::SerialUSB_::baudChangeHandler(const struct device *dev, uint32_t r
2929

3030
#if defined(CONFIG_USB_DEVICE_STACK_NEXT)
3131
intarduino::SerialUSB_::usb_disable() {
32+
// To avoid Cannot perform port reset: 1200-bps touch: setting DTR to OFF: protocol error
33+
k_sleep(K_MSEC(100));
3234
returnusbd_disable(Serial._usbd);
3335
}
3436

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp