From ce16a87a0634c6bd2873ed29cf8c691d31a45e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0=20=D0=93=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D1=88=D0=BA=D0=BE?= Date: Fri, 24 Nov 2023 07:18:05 +0300 Subject: [PATCH] increate max string size --- main/xvprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/xvprintf.c b/main/xvprintf.c index 0fb8821..0ce7d69 100644 --- a/main/xvprintf.c +++ b/main/xvprintf.c @@ -15,9 +15,9 @@ void init_tx_ringbuf() { // This function will be called by the ESP log library every time ESP_LOG needs to be performed. // @important Do NOT use the ESP_LOG* macro's in this function ELSE recursive loop and stack overflow! So use printf() instead for debug messages. int vxprintf(const char *fmt, va_list args) { - char msg_to_send[200]; + char msg_to_send[300]; size_t str_len; - str_len = vsnprintf(msg_to_send, 199, fmt, args); + str_len = vsnprintf(msg_to_send, 299, fmt, args); xRingbufferSend(can_messages, msg_to_send, str_len + 1, pdMS_TO_TICKS(100)); return str_len; }