From 09f8e01cf13c6f69f4815e6f152e07710dde746d Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Tue, 24 Sep 2024 21:39:16 +0800 Subject: [PATCH] =?utf8?q?cat1=E6=89=93=E5=BC=80=E4=B9=9F=E5=8F=AF?= =?utf8?q?=E6=94=AF=E6=8C=81AT?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../sdk/drivers/chips/brandy/porting/uart/uart_porting.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c b/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c index 759116788..9eae0e45e 100755 --- a/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c +++ b/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c @@ -253,6 +253,15 @@ void log_factory_at_callback(const void *buffer, uint16_t length, bool remaining #ifndef SUPPORT_RECOVERY_DISPLAY //判定是否是在编译RECOVERY image,本参数不支持RECOVERY if (uapi_custom_uart_rx_enable_flag() == false) { + if (buffer != NULL && ((uint8_t*)buffer)[0]=='A' && ((uint8_t*)buffer)[1]=='T') + { + if (zdiag_is_enable() == false) { + at_cmd_msg_receive_handler((uint8_t *)buffer, length); + hal_uart_clear_pending(UART_BUS_1); + } + }else{ + hal_uart_clear_pending(UART_BUS_1); + } return ; } #endif -- 2.17.1