Skip to content

Commit f07e88d

Browse files
committed
fix(esp_eth): fixed Static IP example for Ethernet
Fixed IP event handler unregistering for Ethernet
1 parent 7bb6c67 commit f07e88d

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)