mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 11:21:43 +01:00
Fix wifi compile error on IDF 5.1+ (#6756)
This commit is contained in:
parent
98cb6555df
commit
996f71c03c
1 changed files with 4 additions and 0 deletions
|
@ -3,8 +3,12 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#ifdef USE_ESP_IDF
|
#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>
|
#include <esp_wpa2.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(USE_ESP32) || defined(USE_ESP_IDF)
|
#if defined(USE_ESP32) || defined(USE_ESP_IDF)
|
||||||
#include <esp_wifi.h>
|
#include <esp_wifi.h>
|
||||||
|
|
Loading…
Reference in a new issue