at_cmd_msg_receive_handler 函数补齐SUPPORT_AT_CMD宏
authorluozheng <1732036298@qq.com>
Wed, 4 Mar 2026 09:44:58 +0000 (17:44 +0800)
committerluozheng <1732036298@qq.com>
Wed, 4 Mar 2026 09:44:58 +0000 (17:44 +0800)
code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c

index de05aee..da1854b 100644 (file)
@@ -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);
     }
 }