gengxin
author@CHENG <2393524978@qq.com>
Sat, 2 Mar 2024 08:11:33 +0000 (16:11 +0800)
committer@CHENG <2393524978@qq.com>
Sat, 2 Mar 2024 08:11:33 +0000 (16:11 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_api.c
2.sdk/sdk/gui/lv_watch/modem/mmi_modem_tcp/mmi_modem_tcp_msg_handler_impl.c

index 1f5a772..c80420b 100644 (file)
@@ -176,6 +176,14 @@ bool mmi_health_measure_temperature_data_process(float * body_value, float * wri
        t_body_value = 36.0 + rand() % 4 * 0.1;
        t_wrist_value = t_body_value - 10.0;
 
+#elif USE_ACNT117
+       float t_float_value = 0.0;
+
+       mmi_tsensor_body_value_get(&t_float_value);
+       t_body_value = 36.0 + t_float_value - (int)t_float_value;
+       t_wrist_value = t_body_value - 10.0;
+       //HEALTH_MEASURE_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: %d,%d\n", __FUNCTION__, __LINE__, (uint16_t)(t_body_value*100), (uint16_t)(t_float_value*100));
+
 #else
        mmi_tsensor_body_value_get(&t_body_value);
        t_wrist_value = t_body_value - 10.0;
index 4f79856..0e6c8b6 100644 (file)
@@ -211,7 +211,7 @@ static void mmi_protocol_watch_timed_mission_timer_cb(uint32_t para)
        if(mmi_protocol_watch_location_upload_interval_get() <= (cur_time_stamp - s_watch_timed_location_time_stamp))
        {
                uint32_t current_steps = asl_pedometer_steps_get();
-               if(current_steps != s_watch_timed_location_last_steps)
+               //if(current_steps != s_watch_timed_location_last_steps)
                {
                        mmi_protocol_action_location();
                }
index 5a5f393..6402c03 100644 (file)
@@ -121,8 +121,9 @@ void send_tcp_cmdmsg_handler_impl(void *param)
 
        printf("[@CHENG_DEBUG][%s][%d]: action=%d,len=%d\n", __FUNCTION__, __LINE__, cmd_type, send_cmdmsg_size);
        printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff);
-       //printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff + 33);
-       //printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff + 59);
+       //printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff + 96);
+       //printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff + 192);
+       //printf("[@CHENG_DEBUG][%d]: str=%s\n", __LINE__, send_cmdmsg_buff + 288);
        
        if((NULL != send_cmdmsg_buff) && (0 < send_cmdmsg_size))
        {