From 4b47402afdb198cd4a62f0356dbcb20ab0bc3845 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Mon, 15 May 2017 20:53:45 +0300 Subject: [PATCH] Use static buffer for log_printf --- cores/esp32/esp32-hal-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 98fcdce5..3b81a536 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -377,7 +377,7 @@ int log_printf(const char *format, ...) if(s_uart_debug_nr < 0){ return 0; } - char loc_buf[64]; + static char loc_buf[64]; char * temp = loc_buf; int len; va_list arg;