gengxin
authorCCC <2393524978@qq.com>
Mon, 30 Oct 2023 06:46:15 +0000 (14:46 +0800)
committerCCC <2393524978@qq.com>
Mon, 30 Oct 2023 06:46:15 +0000 (14:46 +0800)
2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c

index 3a7d895..ddb0638 100644 (file)
@@ -110,6 +110,9 @@ void mmi_pedometer_steps_mission(hal_rtc_t cur_time)
        }
        asl_pedometer_steps_save(false);
 }
+
+
+// heart sensor
 unsigned char mmi_hsensor_measure_get_wear_status(void)
 {
 #if USE_HX3918
@@ -119,7 +122,6 @@ unsigned char mmi_hsensor_measure_get_wear_status(void)
 #endif
 }
 
-// heart sensor
 void mmi_hsensor_measure_value_clear(void)
 {
 #if USE_HX3918
index c39382d..b3a5741 100644 (file)
@@ -92,6 +92,9 @@ bool mmi_health_measure_wear_state_get(void)
 {
        bool is_wear = TRUE;
 
+       if(0 == mmi_hsensor_measure_get_wear_status())
+               is_wear = false;
+
        return is_wear;
 }