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;