Skip to content

Commit

Permalink
Fix network interface mapping for ESP-IDF
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes committed Nov 5, 2021
1 parent 716f09f commit 0fa4498
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 0fa4498

Please sign in to comment.