From a40bd6df637551fbc68807cd3b841d8c2b349b69 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Mon, 25 Nov 2024 14:53:01 +0800 Subject: [PATCH] =?utf8?q?=E5=BF=83=E7=8E=87=EF=BC=9A=E4=BC=98=E5=8C=96?= =?utf8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2=E5=BF=83=E7=8E=87=E8=84=B1=E8=85=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)); } -- 2.17.1