Skip to content

Commit

Permalink
fix/fix_icmp_echo_demo_build_fail: when CONFIG_ESP_CONSOLE_USB_SERIAL…
Browse files Browse the repository at this point in the history
…_JTAG is enabled, build fail, repl used before defined.
  • Loading branch information
MacChu0315 committed Sep 13, 2024
1 parent 59e1838 commit b257590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/protocols/icmp_echo/main/echo_example_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b257590

Please sign in to comment.