From fe3082fa9899578ed1252decd88c75846375c1d4 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Tue, 21 Feb 2017 14:34:24 +0800 Subject: [PATCH] Do not declare test_spiram when option is disabled --- components/esp32/heap_alloc_caps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp32/heap_alloc_caps.c b/components/esp32/heap_alloc_caps.c index 63db225e1..703f0c119 100644 --- a/components/esp32/heap_alloc_caps.c +++ b/components/esp32/heap_alloc_caps.c @@ -187,6 +187,7 @@ file. extern int _data_start, _heap_start, _init_start, _iram_text_end; +#if CONFIG_MEMMAP_SPIRAM_TEST /* Simple RAM test. Writes a word every 32 bytes. Takes about a second to complete for 4MiB. Returns true when RAM seems OK, false when test fails. @@ -214,7 +215,7 @@ static bool test_spiram(size_t s) return true; } } - +#endif /* Initialize the heap allocator. We pass it a bunch of region descriptors, but we need to modify those first to accommodate for