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