Skip to content

Commit 93909f7

Browse files
authored
fix issue when s3 switch usb from cdc to jtag while reset to bootrom (#8880)
1 parent 76782f2 commit 93909f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: cores/esp32/esp32-hal-tinyusb.c

+5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ typedef struct {
6161

6262
static bool usb_otg_deinit(void * busptr) {
6363
// Once USB OTG is initialized, its GPIOs are assigned and it shall never be deinited
64+
// except when S3 swithicng usb from cdc to jtag while resetting to bootrom
65+
#if CONFIG_IDF_TARGET_ESP32S3
66+
return true;
67+
#else
6468
return false;
69+
#endif
6570
}
6671

6772
static void configure_pins(usb_hal_context_t *usb)

0 commit comments

Comments
 (0)