From 529e4447d4a0218fcd078525b72fb40b069afc24 Mon Sep 17 00:00:00 2001 From: Timo Niemann Date: Thu, 4 Jun 2026 11:39:23 +0200 Subject: [PATCH] decreased timeout when nothing could have been received to 1 tick (in current configuration for freertos 1ms (1kHz)) --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a35a3f7..d9597a3 100644 --- a/main.cpp +++ b/main.cpp @@ -46,7 +46,7 @@ static void read_serial_line_task(void *params){ int c = getchar_timeout_us(0); if(c == PICO_ERROR_TIMEOUT){ - vTaskDelay(pdMS_TO_TICKS(10)); + vTaskDelay(1); continue; }