From 48f22c0401de17d071954294f874b16c94573b8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E7=BD=97=E6=AD=A3?= <1732036298@qq.com> Date: Wed, 4 Mar 2026 10:09:31 +0000 Subject: [PATCH] Merge #3242 into fd272 from refs/changes/3242/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Code review from 罗正 * refs/changes/3242/head: (2 commits squashed) - at_cmd_msg_receive_handler 函数补齐SUPPORT_AT_CMD宏 - Merge branch 'fd272' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into fd272 Signed-off-by: 罗正 <1732036298@qq.com> Merged-by: Caisking <3449750381@qq.com> CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/3242 --- 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