From 3881508b00b7524ab791b0dc090c0301ea673299 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 22 May 2021 09:49:37 +0200 Subject: [PATCH] Fix wrong allocator --- lib/libesp32/Berry/default/be_port.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libesp32/Berry/default/be_port.cpp b/lib/libesp32/Berry/default/be_port.cpp index 6f9184ea9..d63da9f4f 100644 --- a/lib/libesp32/Berry/default/be_port.cpp +++ b/lib/libesp32/Berry/default/be_port.cpp @@ -59,11 +59,11 @@ extern "C" { #define BERRY_LOGSZ 700 #endif extern "C" { - extern void *lvbe_malloc(size_t size); + extern void *berry_malloc(size_t size); } static char * log_berry_buffer = nullptr; static_block { - log_berry_buffer = (char*) lvbe_malloc(BERRY_LOGSZ); + log_berry_buffer = (char*) berry_malloc(BERRY_LOGSZ); if (log_berry_buffer) log_berry_buffer[0] = 0; } extern void berry_log(const char * berry_buf);