From 755f0e3a86e41e9e3cb98f36578b3199c6206e59 Mon Sep 17 00:00:00 2001 From: zhangbo <zhangbo@qq.com> Date: 星期三, 23 四月 2025 11:14:46 +0800 Subject: [PATCH] 蓝牙现在通过PCA9555关闭使能,反初始化串口,拉低PCA中断脚,现在是0.8v --- keil/include/components/app/src/uci_tl_task.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/keil/include/components/app/src/uci_tl_task.c b/keil/include/components/app/src/uci_tl_task.c index 0db4d26..03258ae 100644 --- a/keil/include/components/app/src/uci_tl_task.c +++ b/keil/include/components/app/src/uci_tl_task.c @@ -87,7 +87,8 @@ if (count < UCI_MAX_UL_ITEMS) { - struct UCI_TL_MSG_T *p = WsfBufAlloc((uint16_t)(len + sizeof(struct UCI_TL_MSG_T))); + uint16_t up_data_len = (uint16_t)(len + sizeof(struct UCI_TL_MSG_T)); + struct UCI_TL_MSG_T *p = WsfBufAlloc(up_data_len); if (p != NULL) { @@ -97,8 +98,9 @@ } else { - LOG_INFO(TRACE_MODULE_UCI, "No buff to up queue\r\n"); + LOG_INFO(TRACE_MODULE_UCI, "No buff to up queue %u\r\n", up_data_len); } + // LOG_INFO(TRACE_MODULE_UCI, "HCI %02x %02x %02x %02x\r\n", buf[0], buf[1], buf[2], buf[3]); } else { -- Gitblit v1.9.3