8000 esp32/modmachine: Allow building with USB CDC disabled. · holdenweb/micropython@8fef67b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8fef67b

Browse files
vshymanskyydpgeorge
authored andcommitted
esp32/modmachine: Allow building with USB CDC disabled.
Signed-off-by: Volodymyr Shymanskyy <vshymanskyi@gmail.com>
1 parent 0646177 commit 8fef67b

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_USB_CDC
235235
usb_usj_mode();
236236
usb_dc_prepare_persist();
237237
chip_usb_set_persist_flags(USBDC_BOOT_DFU);

0 commit comments

Comments
 (0)
0