Fix C2 compile error

This commit is contained in:
Jason2866 2024-02-09 13:53:19 +01:00 committed by GitHub
parent 4e7e256892
commit 2f32e3c2ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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