Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix network interface mapping for ESP-IDF #2145

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions targets/ESP32/_Network/NF_ESP32_Wireless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ esp_err_t NF_ESP32_InitaliseWifi()
return ec;
}

// if need, config the AP
// if need, config the AP
// this can only be performed after Wi-Fi is started
if (expectedWifiMode & WIFI_MODE_AP)
{
Expand Down Expand Up @@ -525,5 +525,5 @@ int NF_ESP32_Wait_NetNumber(int num)
vTaskDelay(20 / portTICK_PERIOD_MS);
}

return num;
return espNetif->lwip_netif->num;
}