From 423c43f3e3030b5ca53b44b26d4e7d80a3b9acf8 Mon Sep 17 00:00:00 2001 From: zwl Date: Wed, 11 Jan 2023 20:31:36 +0800 Subject: [PATCH] Fixed hci uart tx long data error --- components/bt/porting/transport/uart/hci_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/porting/transport/uart/hci_uart.c b/components/bt/porting/transport/uart/hci_uart.c index 6b2da47a5e..edb2278e30 100644 --- a/components/bt/porting/transport/uart/hci_uart.c +++ b/components/bt/porting/transport/uart/hci_uart.c @@ -154,7 +154,7 @@ void IRAM_ATTR hci_uart_start_tx(int port_num) data = hci_uart.tx_char(hci_uart.u_func_arg); if (data >= 0) { u8_data = data; - uart_tx_chars(port_num, (char *)&u8_data, 1); + uart_write_bytes(port_num, (char *)&u8_data, 1); } else { break; }