Skip to content

Commit 59f6fc2

Browse files
committed
fix(eppp): Fix EPPP server to process only wifi-station IP event
1 parent 2e7ae1b commit 59f6fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/wifi_remote_over_eppp/src/wifi_remote_rpc_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class RpcInstance {
192192
{
193193
ESP_LOGI(TAG, "Received IP event %" PRIi32, id);
194194
Events ev{api_id::IP_EVENT, id, nullptr};
195-
if (ip_data->esp_netif) {
195+
if (id == IP_EVENT_STA_GOT_IP && ip_data->esp_netif) {
196196
ESP_RETURN_ON_ERROR(ev.create_ip_data(), TAG, "Failed to allocate event data");
197197
ev.ip_data->id = id;
198198
ESP_RETURN_ON_ERROR(esp_netif_get_dns_info(ip_data->esp_netif, ESP_NETIF_DNS_MAIN, &ev.ip_data->dns), TAG, "Failed to get DNS info");

0 commit comments

Comments
 (0)