add include guard for esp_mac.h

This commit is contained in:
Frank
2026-02-09 00:08:03 +01:00
parent 9232bd4d76
commit be49f34a00
2 changed files with 8 additions and 4 deletions

View File

@@ -13,10 +13,10 @@
#endif
#include "mbedtls/sha1.h" // for SHA1 on ESP32
#include "esp_efuse.h"
#include "esp_chip_info.h"
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
#include <esp_mac.h> // V5 requirement
#endif
#include "esp_chip_info.h"
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
#include <esp_mac.h> // V5 requirement
#endif
#endif

View File

@@ -2,8 +2,12 @@
#include "wled.h"
#include "wled_ethernet.h"
#ifdef ARDUINO_ARCH_ESP32
#include "esp_efuse.h"
#include "esp_chip_info.h"
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
#include "esp_mac.h"
#endif
#endif
#include "ota_update.h"
#ifdef WLED_ENABLE_AOTA
#define NO_OTA_PORT