Skip to content

Commit 1833eeb

Browse files
committed
fix(psram): Do not disable PSRAM when used as component
Information: #10500
1 parent b12bfa3 commit 1833eeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp32/esp32-hal-psram.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ extern "C" {
2121

2222
#include "sdkconfig.h"
2323

24-
#ifndef BOARD_HAS_PSRAM
24+
// Clear flags in Arduino IDE when PSRAM is disabled
25+
#if defined(ESP32_ARDUINO_LIB_BUILDER) && !defined(BOARD_HAS_PSRAM)
2526
#ifdef CONFIG_SPIRAM_SUPPORT
2627
#undef CONFIG_SPIRAM_SUPPORT
2728
#endif

0 commit comments

Comments
 (0)