Skip to content

Commit b5aef58

Browse files
committed
Merge branch 'bugfix/ci_eth_ip' into 'master'
iperf fix on SH runners Closes IDFCI-2718 See merge request espressif/esp-idf!36661
2 parents 83eaa26 + 3422022 commit b5aef58

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/ethernet/iperf/main/ethernet_iperf_main.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

7979
void 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();

0 commit comments

Comments
 (0)