gengxin
authorCCC <2393524978@qq.com>
Wed, 29 Nov 2023 10:24:17 +0000 (18:24 +0800)
committerCCC <2393524978@qq.com>
Wed, 29 Nov 2023 10:24:17 +0000 (18:24 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_sleep_activation.c
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c

index 31a1af3..d7be7ea 100644 (file)
@@ -93,7 +93,7 @@ void mmi_heng_ai_gsensor_upload_action(void)
        if(0 == s_gsensor_upload_switch)
                return;
 
-       mmi_protocol_fzd_action_hengai_sleep_data(s_hengai_sleep_gsensor_data, sizeof(s_hengai_sleep_gsensor_data));
+       mmi_protocol_fzd_action_hengai_gsensor_data(s_hengai_sleep_gsensor_data, sizeof(s_hengai_sleep_gsensor_data));
 }
 
 void mmi_heng_ai_gsensor_upload_switch_set(uint8_t value)
index f2ef5d7..1129bea 100644 (file)
@@ -3013,7 +3013,7 @@ bool mmi_protocol_fzd_action_hengai_sleep_data(char * file_buf, uint32_t file_si
 }
 
 #if 1
-bool mmi_protocol_fzd_action_hengai_sleep_data(char * file_buf, uint32_t file_size)
+bool mmi_protocol_fzd_action_hengai_gsensor_data(char * file_buf, uint32_t file_size)
 {
        bool result = false;
        MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_ACTION_GSENSOR_DATA_UPLOAD;
@@ -3051,6 +3051,7 @@ bool mmi_protocol_fzd_parse_SERVER_SET_GSENSOR_UPLOAD_SWITCH(unsigned char * nex
        result = true;
        mmi_protocol_fzd_send_without_data(action);
 
+       uint8_t state_value = 0;
        state_value = atoi(next_buff);
        
        PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);