From f550724055ebeaee768999997a6a162f9d43c4e6 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 3 Aug 2021 09:13:24 +0800 Subject: [PATCH] uart: fix typo in error message Closes https://github.com/espressif/esp-idf/issues/7360 --- components/driver/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/driver/uart.c b/components/driver/uart.c index 42f9540ed7..e9ece99175 100644 --- a/components/driver/uart.c +++ b/components/driver/uart.c @@ -308,7 +308,7 @@ esp_err_t uart_set_sw_flow_ctrl(uart_port_t uart_num, bool enable, uint8_t rx_t { UART_CHECK((uart_num < UART_NUM_MAX), "uart_num error", ESP_FAIL); UART_CHECK((rx_thresh_xon < SOC_UART_FIFO_LEN), "rx flow xon thresh error", ESP_FAIL); - UART_CHECK((rx_thresh_xoff < SOC_UART_FIFO_LEN), "rx flow xon thresh error", ESP_FAIL); + UART_CHECK((rx_thresh_xoff < SOC_UART_FIFO_LEN), "rx flow xoff thresh error", ESP_FAIL); uart_sw_flowctrl_t sw_flow_ctl = { .xon_char = XON, .xoff_char = XOFF,