Skip to content

Commit

Permalink
Fix network interface mapping for ESP-IDF (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Nov 5, 2021
1 parent 716f09f commit c9089a9
Showing 1 changed file with 2 additions and 2 deletions.
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;
}

0 comments on commit c9089a9

Please sign in to comment.