esp32/main: Use both 3.3 and 4.0 config vars to enable SPIRAM.

This commit is contained in:
Jim Mussared 2019-09-18 10:44:16 +10:00 committed by Damien George
parent 73c94bbbd4
commit 62d78e231c
1 changed files with 2 additions and 1 deletions

View File

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