From: CCC <2393524978@qq.com> Date: Mon, 30 Oct 2023 06:46:15 +0000 (+0800) Subject: gengxin X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=f78889c15b97cc00637f3a18102d40532c798bb6;p=mirrors%2FASR3603_Z5.git gengxin --- diff --git a/2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c b/2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c index 3a7d8953..ddb0638d 100644 --- a/2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c +++ b/2.sdk/sdk/gui/lv_watch/app_adaptor/app_adaptor_sensor_interface.c @@ -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 diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c b/2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c index c39382d7..b3a57410 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c @@ -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; }