From f07e88de97755ddba0fa15c226e7b8afeaa1c56f Mon Sep 17 00:00:00 2001 From: Ondrej Kosta Date: Mon, 10 Feb 2025 11:08:50 +0100 Subject: [PATCH] fix(esp_eth): fixed Static IP example for Ethernet Fixed IP event handler unregistering for Ethernet --- examples/protocols/static_ip/main/static_ip_example_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/protocols/static_ip/main/static_ip_example_main.c b/examples/protocols/static_ip/main/static_ip_example_main.c index c5c9639a21..4b7e7aa61e 100644 --- a/examples/protocols/static_ip/main/static_ip_example_main.c +++ b/examples/protocols/static_ip/main/static_ip_example_main.c @@ -250,7 +250,7 @@ static void eth_init(void) } /* The event will not be processed after unregister */ - ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, instance_got_ip)); + ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_ETH_GOT_IP, instance_got_ip)); ESP_ERROR_CHECK(esp_event_handler_instance_unregister(ETH_EVENT, ESP_EVENT_ANY_ID, instance_any_id)); vEventGroupDelete(s_network_event_group); }