From c0d8d190510a6487e1b439d0db0b458dba30eff9 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: Tue, 28 Nov 2023 14:26:40 +0300 Subject: [PATCH] fix candown --- main/can.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/can.c b/main/can.c index 4166494..1b954f6 100644 --- a/main/can.c +++ b/main/can.c @@ -66,7 +66,7 @@ void can_msg_to_str(twai_message_t *can_msg, char *start_str, char *out_str) { // TODO: add software filtering void can_task(void* arg) { - static const TickType_t can_task_timeout = pdMS_TO_TICKS(100); + static const TickType_t can_task_timeout = pdMS_TO_TICKS(200); uint32_t alerts = 0; esp_err_t ret = ESP_OK; BaseType_t sem_res; @@ -101,6 +101,7 @@ void can_task(void* arg) { print_w_clr_time(data_bytes_str, LOG_COLOR_BLUE, false); } xSemaphoreGive(can_mutex); + vTaskDelay(1); } if (sem_res != pdTRUE || ret == ESP_ERR_INVALID_STATE || ret == ESP_ERR_NOT_SUPPORTED) { vTaskDelay(can_task_timeout);