From 1cc2e535480f96537e62f0fc197dd65f86f6292f Mon Sep 17 00:00:00 2001 From: Chen Wu Date: Fri, 3 Jan 2025 11:26:45 +0800 Subject: [PATCH] fix(uart): Fixed a low throughput issue on esp32 and esp32s2 --- main/interface/uart/at_uart_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/interface/uart/at_uart_api.c b/main/interface/uart/at_uart_api.c index 7fdcc4bb..67b400ed 100644 --- a/main/interface/uart/at_uart_api.c +++ b/main/interface/uart/at_uart_api.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -262,10 +262,10 @@ void at_uart_config_init(uart_config_t *config) config->flow_ctrl = CONFIG_AT_UART_DEFAULT_FLOW_CONTROL; config->rx_flow_ctrl_thresh = 122; -#if SOC_UART_SUPPORT_REF_TICK - config->source_clk = UART_SCLK_REF_TICK; -#elif SOC_UART_SUPPORT_XTAL_CLK +#if SOC_UART_SUPPORT_XTAL_CLK config->source_clk = UART_SCLK_XTAL; +#else + config->source_clk = UART_SCLK_DEFAULT; #endif }