mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +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>
|
||||
|
||||
#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>
|
||||
|
|
Loading…
Reference in a new issue