Skip to content

Commit

Permalink
fix(psram): Do not disable PSRAM when used as component
Browse files Browse the repository at this point in the history
Information: #10500
  • Loading branch information
me-no-dev committed Oct 22, 2024
1 parent 0eee5c4 commit 17d0546
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cores/esp32/esp32-hal-psram.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ extern "C" {

#include "sdkconfig.h"

#ifndef BOARD_HAS_PSRAM
// Clear flags in Arduino IDE when PSRAM is disabled
#if defined(ESP32_ARDUINO_LIB_BUILDER) && !defined(BOARD_HAS_PSRAM)
#ifdef CONFIG_SPIRAM_SUPPORT
#undef CONFIG_SPIRAM_SUPPORT
#endif
Expand Down

0 comments on commit 17d0546

Please sign in to comment.