uart: shorter timeout for responsiveness
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user