Skip to content

Commit b433731

Browse files
fix(ethernet_basic): Fix second Ethernet device not receiving IP address
1 parent 45c1867 commit b433731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ethernet/basic/main/ethernet_example_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void app_main(void)
106106
esp_netif_config.if_desc = if_desc_str;
107107
esp_netif_config.route_prio -= i*5;
108108
eth_netifs[i] = esp_netif_new(&cfg_spi);
109-
eth_netif_glues[i] = esp_eth_new_netif_glue(eth_handles[0]);
109+
eth_netif_glues[i] = esp_eth_new_netif_glue(eth_handles[i]);
110110
// Attach Ethernet driver to TCP/IP stack
111111
ESP_ERROR_CHECK(esp_netif_attach(eth_netifs[i], eth_netif_glues[i]));
112112
}

0 commit comments

Comments
 (0)