From b3485fcb10f56794e9148b3376da9b62cc4e0ec6 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Wed, 11 Mar 2026 17:53:56 +0100 Subject: [PATCH] uart: shorter timeout for responsiveness --- main/uart_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/uart_handler.c b/main/uart_handler.c index b69604d..cd89b5b 100644 --- a/main/uart_handler.c +++ b/main/uart_handler.c @@ -81,8 +81,8 @@ static void uart_rx_task(void *arg) { ESP_LOGI(TAG, "UART RX task started, waiting for data on UART%d", BMC_UART_NUM); while (uart_initialized) { - // Check for data from UART with longer timeout - int len = uart_read_bytes(BMC_UART_NUM, temp_buf, 256, pdMS_TO_TICKS(100)); + // Check for data from UART with short timeout for responsive console + int len = uart_read_bytes(BMC_UART_NUM, temp_buf, 256, pdMS_TO_TICKS(10)); if (len > 0) { // Store in ring buffer