mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(esp_eth): fixed Static IP example for Ethernet
Fixed IP event handler unregistering for Ethernet
This commit is contained in:
parent
7bb6c67efe
commit
f07e88de97
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user