⚠️ Removes redefines warning

This commit is contained in:
Rune Harlyk
2024-06-08 15:45:44 +02:00
committed by Rune Harlyk
parent 42597da736
commit 5e946343f2
+17 -9
View File
@@ -24,19 +24,27 @@
#include <esp32-hal.h> #include <esp32-hal.h>
#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4 #if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4
#include "esp32/rom/rtc.h" #include "esp32/rom/rtc.h"
#define ESP_PLATFORM "ESP32"; #ifndef ESP_PLATFORM
#define ESP_PLATFORM "ESP32"
#endif
#elif CONFIG_IDF_TARGET_ESP32S2 #elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32/rom/rtc.h" #include "esp32/rom/rtc.h"
#define ESP_PLATFORM "ESP32-S2"; #ifndef ESP_PLATFORM
#define ESP_PLATFORM "ESP32-S2"
#endif
#elif CONFIG_IDF_TARGET_ESP32C3 #elif CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/rtc.h" #include "esp32c3/rom/rtc.h"
#define ESP_PLATFORM "ESP32-C3"; #ifndef ESP_PLATFORM
#define ESP_PLATFORM "ESP32-C3"
#endif
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
#include "esp32s3/rom/rtc.h" #include "esp32s3/rom/rtc.h"
#define ESP_PLATFORM "ESP32-S3"; #ifndef ESP_PLATFORM
#define ESP_PLATFORM "ESP32-S3"
#endif
#else #else
#error Target CONFIG_IDF_TARGET is not supported #error Target CONFIG_IDF_TARGET is not supported
#endif #endif
#ifndef ARDUINO_VERSION #ifndef ARDUINO_VERSION