From: Caisking <3449750381@qq.com> Date: Mon, 25 Nov 2024 06:53:01 +0000 (+0800) Subject: 心率:优化主界面心率脱腕 X-Git-Tag: fd230_release_V1.3.102~31 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a40bd6df637551fbc68807cd3b841d8c2b349b69;p=mirrors%2FFD230.git 心率:优化主界面心率脱腕 --- diff --git a/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c b/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c index bbdbee1e1..8bc22fe68 100644 --- a/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c +++ b/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c @@ -2740,12 +2740,14 @@ void hx3695_wearstatus_update(void) void hx3695_unwearstatus_update(void) { hx3695_msg_callback_t func = hx3695_get_send_msg_callback_func(); - if(func != NULL) + if(func != NULL && !uapi_dev_runtime_get_train_status()) { hrsresult.lastesthrs = 0; hrsresult.wearstatus = 0; - - func(HX3695_MSG_TYPE_HRS_UPDATE,&hrsresult,sizeof(FT_CUSTOM_RESULTS_t)); + //为了主界面脱腕灵敏;需要增加未佩戴 + func(HX3695_MSG_TYPE_HRS_UPDATE, &hrsresult, sizeof(FT_CUSTOM_RESULTS_t)); + func(HX3695_MSG_TYPE_WEARSTAT_UPDATE, &hrsresult,sizeof(FT_CUSTOM_RESULTS_t)); + func(HX3695_MSG_TYPE_WEARSTAT_UPDATE,&hrsresult,sizeof(FT_CUSTOM_RESULTS_t)); func(HX3695_MSG_TYPE_WEARSTAT_UPDATE,&hrsresult,sizeof(FT_CUSTOM_RESULTS_t)); }