From: luozheng <1732036298@qq.com> Date: Wed, 4 Mar 2026 09:44:58 +0000 (+0800) Subject: at_cmd_msg_receive_handler 函数补齐SUPPORT_AT_CMD宏 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=22cbe04cebed6d4de2913cf8573157f0de29e170;p=mirrors%2FFD230.git at_cmd_msg_receive_handler 函数补齐SUPPORT_AT_CMD宏 --- 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); } }