8000 esp32: Allow disabling USB CDC. · micropython/micropython@ddffe93 · GitHub
[go: up one dir, main page]

Skip to content

Commit ddffe93

Browse files
committed
esp32: Allow disabling USB CDC.
Signed-off-by: Volodymyr Shymanskyy <vshymanskyi@gmail.com>
1 parent 1b89c50 commit ddffe93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/modmachine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static mp_int_t mp_machine_reset_cause(void) {
231231
#endif
232232

233233
NORETURN static void machine_bootloader_rtc(void) {
234-
#if CONFIG_IDF_TARGET_ESP32S3
234+
#if CONFIG_IDF_TARGET_ESP32S3 && MICROPY_HW_ENABLE_USBDEV
235235
usb_usj_mode();
236236
usb_dc_prepare_persist();
237237
chip_usb_set_persist_flags(USBDC_BOOT_DFU);

0 commit comments

Comments
 (0)
0