Fix for compilation issue in ESP-IDF v5.x

This commit is contained in:
Manuel Bleichenbacher 2022-09-21 20:32:46 +02:00
commit 46ad09736b
2 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,9 @@ set(COMPONENT_ADD_INCLUDEDIRS
set(COMPONENT_REQUIRES set(COMPONENT_REQUIRES
nvs_flash nvs_flash
mbedtls mbedtls
driver
esp_event
esp_timer
) )
register_component() register_component()

View File

@ -15,6 +15,9 @@
#include "esp_event.h" #include "esp_event.h"
#include "esp_log.h" #include "esp_log.h"
#include "esp_system.h" #include "esp_system.h"
#if ESP_IDF_VERSION_MAJOR >= 5
#include "esp_mac.h"
#endif
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "hal/hal_esp32.h" #include "hal/hal_esp32.h"
#include "lmic/lmic.h" #include "lmic/lmic.h"