Skip to content

Commit 45c1867

Browse files
committed
Merge branch 'fix/eth_example_stat_ip' into 'master'
fix(esp_eth): fixed Static IP example for Ethernet Closes IDFCI-2707 See merge request espressif/esp-idf!36821
2 parents dc4ef79 + f07e88d commit 45c1867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protocols/static_ip/main/static_ip_example_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static void eth_init(void)
250250
}
251251

252252
/* The event will not be processed after unregister */
253-
ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, instance_got_ip));
253+
ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_ETH_GOT_IP, instance_got_ip));
254254
ESP_ERROR_CHECK(esp_event_handler_instance_unregister(ETH_EVENT, ESP_EVENT_ANY_ID, instance_any_id));
255255
vEventGroupDelete(s_network_event_group);
256256
}

0 commit comments

Comments
 (0)