From 6b0a64d7225440f4af82d4e26abfd2813b7d5b54 Mon Sep 17 00:00:00 2001 From: zhaoweiliang Date: Tue, 3 Jan 2023 20:12:08 +0800 Subject: [PATCH] Fixed hci uart flow ctrl error on ESP32-C2 and ESP32-H4 --- components/bt/porting/transport/uart/hci_uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/porting/transport/uart/hci_uart.c b/components/bt/porting/transport/uart/hci_uart.c index 16d5076ee1..9e6ac67677 100644 --- a/components/bt/porting/transport/uart/hci_uart.c +++ b/components/bt/porting/transport/uart/hci_uart.c @@ -122,6 +122,7 @@ int hci_uart_config(int port_num, int32_t baud_rate, uint8_t data_bits, uint8_t .stop_bits = stop_bits, .flow_ctrl = HCI_UART_FLOWCTRL, .source_clk = UART_SCLK_DEFAULT, + .rx_flow_ctrl_thresh = UART_FIFO_LEN - 1, }; hci_uart.port = port_num; hci_uart.cfg = uart_cfg;