uart: shorter timeout for responsiveness

This commit is contained in:
2026-03-11 17:53:56 +01:00
parent 064e8812a4
commit b3485fcb10

View File

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