aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared2019-09-18 10:44:16 +1000
committerDamien George2019-09-18 15:49:45 +1000
commit62d78e231ceb41eecdc3180cae6f07d790cd33d8 (patch)
treebb4744e7d19012e91dbcf9d8015e89949ae0210e
parent73c94bbbd45c01c3236282e7b334e4539ca043d4 (diff)
esp32/main: Use both 3.3 and 4.0 config vars to enable SPIRAM.
-rw-r--r--ports/esp32/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c
index 4d25cf0b3..7106e0bf5 100644
--- a/ports/esp32/main.c
+++ b/ports/esp32/main.c
@@ -74,7 +74,8 @@ void mp_task(void *pvParameter) {
#endif
uart_init();
- #if CONFIG_ESP32_SPIRAM_SUPPORT
+ // TODO: CONFIG_SPIRAM_SUPPORT is for 3.3 compatibility, remove after move to 4.0.
+ #if CONFIG_ESP32_SPIRAM_SUPPORT || CONFIG_SPIRAM_SUPPORT
// Try to use the entire external SPIRAM directly for the heap
size_t mp_task_heap_size;
void *mp_task_heap = (void*)0x3f800000;