消息去文件IO(补) 503/2 503/head 504/target/1
authorhcj <1224667075@qq.com>
Thu, 11 Jul 2024 09:06:14 +0000 (17:06 +0800)
committerhcj <1224667075@qq.com>
Thu, 11 Jul 2024 09:06:14 +0000 (17:06 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.h
code/sdk/drivers/peripheral/utils/pdu.c

index 9dfeba6..d1a79a9 100644 (file)
@@ -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);
 
index b1292ea..3ffb327 100644 (file)
@@ -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;