From 40a4d78e6f629feea9780bfd8aaa99d3c71cf447 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 11 Jul 2024 17:06:14 +0800 Subject: [PATCH] =?utf8?q?=E6=B6=88=E6=81=AF=E5=8E=BB=E6=96=87=E4=BB=B6IO?= =?utf8?q?=EF=BC=88=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.h | 2 +- code/sdk/drivers/peripheral/utils/pdu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.h b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.h index 9dfeba67f..d1a79a943 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.h +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.h @@ -774,7 +774,7 @@ uint8_t calculate_lrc_file(char *file_path); void* message_data(int uid,int appid,char *title,char *msg,int hasCode); -void CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(void*); +void CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(void* data); void send_AI_is_ready(uint8_t type); diff --git a/code/sdk/drivers/peripheral/utils/pdu.c b/code/sdk/drivers/peripheral/utils/pdu.c index b1292ea3a..3ffb327c5 100644 --- a/code/sdk/drivers/peripheral/utils/pdu.c +++ b/code/sdk/drivers/peripheral/utils/pdu.c @@ -323,8 +323,8 @@ int pdu_decode_example(const char *inpdustr ) timenow->tm_min, timenow->tm_sec); - ancs_msg_index= message_data(0,0,phone_number,text,0); - CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(ancs_msg_index); + void *data= message_data(0,0,phone_number,text,0); + CustomEventPublish_TOPIC_EVENT_MESSAGENOTE(data); } return ret; -- 2.17.1