From 2f32e3c2ee77d9d6906187eb9db625ba6b17d56a Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:53:19 +0100 Subject: [PATCH] Fix C2 compile error --- tasmota/tasmota_support/support_esp32.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_support/support_esp32.ino b/tasmota/tasmota_support/support_esp32.ino index 365f4d0f7..017830a5d 100644 --- a/tasmota/tasmota_support/support_esp32.ino +++ b/tasmota/tasmota_support/support_esp32.ino @@ -587,7 +587,7 @@ extern "C" { // `psramFound()` can return true even if no PSRAM is actually installed // This new version also checks `esp_spiram_is_initialized` to know if the PSRAM is initialized bool FoundPSRAM(void) { -#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 +#if CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 return psramFound(); #else #if ESP_IDF_VERSION_MAJOR >= 5 @@ -1053,4 +1053,4 @@ void GpioForceHoldRelay(void) { /********************************************************************************************/ -#endif // ESP32 \ No newline at end of file +#endif // ESP32