File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ports/espressif/supervisor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ safe_mode_t port_heap_init(safe_mode_t sm) {
325
325
common_hal_espidf_set_reserved_psram (reserved );
326
326
}
327
327
328
- #ifdef CONFIG_SPIRAM_USE_MEMMAP
328
+ #if defined( CONFIG_SPIRAM_USE_MEMMAP )
329
329
{
330
330
intptr_t heap_start = common_hal_espidf_get_psram_start ();
331
331
intptr_t heap_end = common_hal_espidf_get_psram_end ();
@@ -338,7 +338,7 @@ safe_mode_t port_heap_init(safe_mode_t sm) {
338
338
ESP_LOGE (TAG , "CONFIG_SPIRAM_USE_MMAP enabled but no spiram heap available" );
339
339
}
340
340
}
341
- #elif CONFIG_SPIRAM_USE_CAPS_ALLOC
341
+ #elif defined( CONFIG_SPIRAM_USE_CAPS_ALLOC )
342
342
{
343
343
intptr_t psram_start = common_hal_espidf_get_psram_start ();
344
344
intptr_t psram_end = common_hal_espidf_get_psram_end ();
You can’t perform that action at this time.
0 commit comments