From 4ab0f750ac9a494774c608001efcf6810918f284 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Sat, 6 Jul 2019 21:46:59 +0900 Subject: [PATCH] Missing heap_caps_malloc. issue #102 --- src/AutoConnectElementJson.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AutoConnectElementJson.h b/src/AutoConnectElementJson.h index b28f073..fb32a92 100644 --- a/src/AutoConnectElementJson.h +++ b/src/AutoConnectElementJson.h @@ -82,7 +82,8 @@ struct SpiRamAllocatorST { else { caps = MALLOC_CAP_8BIT; AC_DBG("PSRAM not found, JSON buffer allocates to the heap.\n"); - } + } + return heap_caps_malloc(size,caps); } void deallocate(void* pointer) { heap_caps_free(pointer);