gengxin
author@CHENG <2393524978@qq.com>
Wed, 21 Feb 2024 10:08:49 +0000 (18:08 +0800)
committer@CHENG <2393524978@qq.com>
Wed, 21 Feb 2024 10:08:49 +0000 (18:08 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/custom_function/heng_ai_blood_pressure.c
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_measure.c

index ce15f5a..efc31cc 100644 (file)
@@ -557,6 +557,7 @@ void mmi_hengai_bp_measure_start_btn_event_cb(lv_obj_t * obj, lv_event_t e)
        else
        {
                HENGAI_HEALTH_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+               mmi_health_measure_factory_mode_clean();
                mmi_hsensor_blood_open();
                mmi_hengai_bp_measure_action_time_string_set(1);
                mmi_hengai_bp_measuring_flag_set(true);
@@ -1355,6 +1356,7 @@ void mmi_heng_ai_bp_calibrate_start_screen(void)
        else
        {
                HENGAI_HEALTH_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+               mmi_health_measure_factory_mode_clean();
                mmi_hsensor_blood_open();
                mmi_hengai_bp_measure_action_time_string_set(1);
                mmi_hengai_bp_measuring_flag_set(true);
index df0d77a..552c99e 100644 (file)
@@ -951,6 +951,7 @@ void mmi_health_measure_factory_mode_clean(void)
        {
                mmi_health_measure_interrupt();
        }
+       _lv_memset_00(&s_health_measure_run_data, sizeof(s_health_measure_run_data));
 }