projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3522b3e
)
at_cmd_msg_receive_handler 函数补齐SUPPORT_AT_CMD宏
author
luozheng
<1732036298@qq.com>
Wed, 4 Mar 2026 09:44:58 +0000
(17:44 +0800)
committer
luozheng
<1732036298@qq.com>
Wed, 4 Mar 2026 09:44:58 +0000
(17:44 +0800)
code/sdk/drivers/chips/brandy/porting/uart/uart_porting.c
patch
|
blob
|
history
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
de05aee
..
da1854b
100644
(file)
--- 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);
}
}