Skip to content

Commit aadb940

Browse files
committed
Temp bug with free PSRAM causing crashes
1 parent c632410 commit aadb940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/wled.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void WLED::loop()
355355
DEBUG_PRINT(F("Avail heap: ")); DEBUG_PRINTLN(ESP.getMaxAllocHeap());
356356
DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
357357
#endif
358-
#if defined(ARDUINO_ARCH_ESP32) && defined(BOARD_HAS_PSRAM)
358+
#if defined(ARDUINO_ARCH_ESP32) && defined(BOARD_HAS_PSRAM) && !defined(ARDUINO_ARCH_ESP32P4)
359359
if (psramFound()) { // OK use
360360
//DEBUG_PRINT(F("Total PSRAM: ")); DEBUG_PRINT(ESP.getPsramSize()/1024); DEBUG_PRINTLN("kB");
361361
DEBUG_PRINT(F("Free PSRAM : ")); DEBUG_PRINT(ESP.getFreePsram()/1024); DEBUG_PRINTLN("kB");
@@ -749,7 +749,7 @@ void WLED::setup()
749749
// ESP32-P4 peripherals are hidden from GPIO map, including PSRAM - so we don't need to further hide them.
750750

751751
// GPIO > 36 are not powered/configured for Arduino-ESP32 by default.
752-
// fix from https://esp32.com/viewtopic.php?t=45334
752+
// fix from https://esp32.com/viewtopic.php?t=45334 thanks to microfoundry
753753

754754
esp_ldo_channel_config_t config2 = {
755755
.chan_id = 3, // discovered by trial and error

0 commit comments

Comments
 (0)