佩戴检查接口添加
authorp15692025051 <846603105@qq.com>
Mon, 30 Oct 2023 06:39:43 +0000 (14:39 +0800)
committerp15692025051 <846603105@qq.com>
Mon, 30 Oct 2023 06:39:43 +0000 (14:39 +0800)
2.sdk/sdk/gui/lv_drivers/indev/HX3918/hx3918.c
2.sdk/sdk/gui/lv_drivers/indev/HX3918/hx3918.h
2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c

index 252918f..fa32e59 100644 (file)
@@ -446,6 +446,11 @@ void HX3918_result_set_wear_status(unsigned char wear_status)
                s_HX3918_wear_status = 1;
    //HX3918_LOG("s_HX3918_wear_status:%d !!!!!!!!!!!!!!!!!\n\n\n",s_HX3918_wear_status);
 }
+unsigned char HX3918_result_get_wear_status(void)
+{
+       
+       return s_HX3918_wear_status ;
+}
 void HX3918_result_set_blood_oxygen(unsigned char blood_oxygen)
 {
    s_HX3918_blood_oxygen = blood_oxygen;    
index cb7a8ad..f64c2dd 100644 (file)
@@ -360,6 +360,7 @@ void hx3918_set_gsen_fifo(short *x,short *y,short *z, int count);
 void Hx3918_Init(void);
 uint8_t get_hx3918_id(void);
 void HX3918_result_set_wear_status(unsigned char wear_status);
+unsigned char HX3918_result_get_wear_status(void);
 void HX3918_close(void);
 void hx3918_measure_stop(void);
 #endif
index d5c3e20..3a7d895 100644 (file)
@@ -110,7 +110,14 @@ void mmi_pedometer_steps_mission(hal_rtc_t cur_time)
        }
        asl_pedometer_steps_save(false);
 }
-
+unsigned char mmi_hsensor_measure_get_wear_status(void)
+{
+#if USE_HX3918
+    return HX3918_result_get_wear_status();
+#else
+    return 1;
+#endif
+}
 
 // heart sensor
 void mmi_hsensor_measure_value_clear(void)