summaryrefslogtreecommitdiff
path: root/ports/esp32/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/main.c')
-rw-r--r--ports/esp32/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c
index a6346b027..1420dd579 100644
--- a/ports/esp32/main.c
+++ b/ports/esp32/main.c
@@ -89,10 +89,10 @@ void mp_task(void *pvParameter) {
#if MICROPY_PY_THREAD
mp_thread_init(pxTaskGetStackStart(NULL), MP_TASK_STACK_SIZE / sizeof(uintptr_t));
#endif
- #if CONFIG_USB_OTG_SUPPORTED
- usb_init();
- #elif CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
+ #if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
usb_serial_jtag_init();
+ #elif CONFIG_USB_OTG_SUPPORTED
+ usb_init();
#endif
#if MICROPY_HW_ENABLE_UART_REPL
uart_stdout_init();