From: SnickerSun Date: Tue, 24 Sep 2024 13:39:16 +0000 (+0800) Subject: cat1打开也可支持AT X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=09f8e01cf13c6f69f4815e6f152e07710dde746d;p=mirrors%2FFD230.git cat1打开也可支持AT --- 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