File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
examples/ethernet/iperf/main Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2018-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Unlicense OR CC0-1.0
55 */
@@ -78,8 +78,6 @@ void init_ethernet_and_netif(void)
7878
7979void app_main (void )
8080{
81- init_ethernet_and_netif ();
82-
8381 esp_console_repl_t * repl = NULL ;
8482 esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT ();
8583 esp_console_dev_uart_config_t uart_config = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT ();
@@ -91,6 +89,9 @@ void app_main(void)
9189 // init console REPL environment
9290 ESP_ERROR_CHECK (esp_console_new_repl_uart (& uart_config , & repl_config , & repl ));
9391
92+ // init Ethernet and netif
93+ init_ethernet_and_netif ();
94+
9495 /* Register commands */
9596 register_system_common ();
9697 app_register_iperf_commands ();
You can’t perform that action at this time.
0 commit comments