From 0fa44981095ce110c1b7042e16a10cae7cc1fcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Fri, 5 Nov 2021 18:17:21 +0000 Subject: [PATCH] Fix network interface mapping for ESP-IDF --- targets/ESP32/_Network/NF_ESP32_Wireless.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/ESP32/_Network/NF_ESP32_Wireless.cpp b/targets/ESP32/_Network/NF_ESP32_Wireless.cpp index 7288a31afb..74feb293b2 100644 --- a/targets/ESP32/_Network/NF_ESP32_Wireless.cpp +++ b/targets/ESP32/_Network/NF_ESP32_Wireless.cpp @@ -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) { @@ -525,5 +525,5 @@ int NF_ESP32_Wait_NetNumber(int num) vTaskDelay(20 / portTICK_PERIOD_MS); } - return num; + return espNetif->lwip_netif->num; }