increate max string size

This commit is contained in:
Данила Горнушко 2023-11-24 07:18:05 +03:00
parent b3729cff92
commit ce16a87a06

View file

@ -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;
}