Fix wifi compile error on IDF 5.1+ (#6756)

This commit is contained in:
Keith Burzinski 2024-05-15 23:40:21 -05:00 committed by GitHub
parent 98cb6555df
commit 996f71c03c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -3,8 +3,12 @@
#include <map>
#ifdef USE_ESP_IDF
#if (ESP_IDF_VERSION_MAJOR >= 5 && ESP_IDF_VERSION_MINOR >= 1)
#include <esp_eap_client.h>
#else
#include <esp_wpa2.h>
#endif
#endif
#if defined(USE_ESP32) || defined(USE_ESP_IDF)
#include <esp_wifi.h>