fix/fix_icmp_echo_demo_build_fail: when CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG is enabled, build fail, repl used before defined.

This commit is contained in:
MacChu0315 2024-09-14 00:17:45 +08:00
parent 59e1838270
commit b2575902ed

View File

@ -217,7 +217,7 @@ void app_main(void)
ESP_ERROR_CHECK(esp_console_new_repl_usb_cdc(&cdc_config, &repl_config, &s_repl));
#elif CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
esp_console_dev_usb_serial_jtag_config_t usbjtag_config = ESP_CONSOLE_DEV_USB_SERIAL_JTAG_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_console_new_repl_usb_serial_jtag(&usbjtag_config, &repl_config, &repl));
ESP_ERROR_CHECK(esp_console_new_repl_usb_serial_jtag(&usbjtag_config, &repl_config, &s_repl));
#endif
/* Use either WiFi console commands or menuconfig options to connect to WiFi/Ethernet