From 19d313622a4a71c45f0695a2f5c5203895c93b1c Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 2 Sep 2021 20:54:50 +0200 Subject: [PATCH] Fix PSRAM compilation for Esp32c3 --- tasmota/support_esp.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/support_esp.ino b/tasmota/support_esp.ino index 7a8a26130..1547d04f8 100644 --- a/tasmota/support_esp.ino +++ b/tasmota/support_esp.ino @@ -472,7 +472,11 @@ 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 + return psramFound(); +#else return psramFound() && esp_spiram_is_initialized(); +#endif } // new function to check whether PSRAM is present and supported (i.e. required pacthes are present)