fix(esp_eth): fixed Static IP example for Ethernet

Fixed IP event handler unregistering for Ethernet
This commit is contained in:
Ondrej Kosta 2025-02-10 11:08:50 +01:00
parent 7bb6c67efe
commit f07e88de97

View File

@ -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);
}