From d5785d196878e1fb271f15692f9b0c2be5eea7cb Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Tue, 23 Aug 2022 15:45:08 +0800 Subject: [PATCH] Fixed the bt_spp_initiator example that did not set the uart source clock when initializing the uart, which caused a crash --- .../bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c index ed5b6b1de4..bde63273b7 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c @@ -25,6 +25,7 @@ static const uart_config_t uart_cfg = { .stop_bits = UART_STOP_BITS_1, .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, .rx_flow_ctrl_thresh = 127, + .source_clk = UART_SCLK_DEFAULT, }; extern void spp_msg_args_parser(char *buf, int len);