From 22cbe04cebed6d4de2913cf8573157f0de29e170 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 4 Mar 2026 17:44:58 +0800 Subject: [PATCH] =?utf8?q?at=5Fcmd=5Fmsg=5Freceive=5Fhandler=20=E5=87=BD?= =?utf8?q?=E6=95=B0=E8=A1=A5=E9=BD=90SUPPORT=5FAT=5FCMD=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c | 4 ++++ 1 file changed, 4 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 de05aeee1..da1854b56 100644 --- a/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c +++ b/code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c @@ -375,7 +375,9 @@ void log_factory_at_callback(const void *buffer, uint16_t length, bool remaining if (buffer != NULL && ((uint8_t*)buffer)[0]=='A' && ((uint8_t*)buffer)[1]=='T') { if (zdiag_is_enable() == false) { + #ifdef SUPPORT_AT_CMD at_cmd_msg_receive_handler((uint8_t *)buffer, length); + #endif hal_uart_clear_pending(UART_BUS_1); } }else{ @@ -388,7 +390,9 @@ void log_factory_at_callback(const void *buffer, uint16_t length, bool remaining log_uart_rx_callback(buffer, length, remaining); #endif if (zdiag_is_enable() == false) { + #ifdef SUPPORT_AT_CMD at_cmd_msg_receive_handler((uint8_t *)buffer, length); + #endif hal_uart_clear_pending(UART_BUS_1); } } -- 2.17.1