mirror of
https://github.com/esphome/esphome.git
synced 2025-02-20 11:58:14 +00:00
Fix wifi compile error on IDF 5.1+ (#6756)
This commit is contained in:
parent
98cb6555df
commit
996f71c03c
@ -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…
x
Reference in New Issue
Block a user