mirror of https://github.com/arendst/Tasmota.git
Fix PSRAM compilation for Esp32c3
This commit is contained in:
parent
c044fd22c4
commit
19d313622a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue