From 5e946343f2d792e4507b15dc15ea55c3fdc6a5ed Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sat, 8 Jun 2024 15:45:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20Removes=20redefines=20warn?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/lib/ESP32-sveltekit/SystemStatus.h | 26 ++++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/esp32/lib/ESP32-sveltekit/SystemStatus.h b/esp32/lib/ESP32-sveltekit/SystemStatus.h index 94d3e3c..7d0c977 100644 --- a/esp32/lib/ESP32-sveltekit/SystemStatus.h +++ b/esp32/lib/ESP32-sveltekit/SystemStatus.h @@ -24,19 +24,27 @@ #include #if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4 -#include "esp32/rom/rtc.h" -#define ESP_PLATFORM "ESP32"; + #include "esp32/rom/rtc.h" + #ifndef ESP_PLATFORM + #define ESP_PLATFORM "ESP32" + #endif #elif CONFIG_IDF_TARGET_ESP32S2 -#include "esp32/rom/rtc.h" -#define ESP_PLATFORM "ESP32-S2"; + #include "esp32/rom/rtc.h" + #ifndef ESP_PLATFORM + #define ESP_PLATFORM "ESP32-S2" + #endif #elif CONFIG_IDF_TARGET_ESP32C3 -#include "esp32c3/rom/rtc.h" -#define ESP_PLATFORM "ESP32-C3"; + #include "esp32c3/rom/rtc.h" + #ifndef ESP_PLATFORM + #define ESP_PLATFORM "ESP32-C3" + #endif #elif CONFIG_IDF_TARGET_ESP32S3 -#include "esp32s3/rom/rtc.h" -#define ESP_PLATFORM "ESP32-S3"; + #include "esp32s3/rom/rtc.h" + #ifndef ESP_PLATFORM + #define ESP_PLATFORM "ESP32-S3" + #endif #else -#error Target CONFIG_IDF_TARGET is not supported + #error Target CONFIG_IDF_TARGET is not supported #endif #ifndef ARDUINO_VERSION