From a07b69263fc9df4b5713ab205aa15db10be8c2ec Mon Sep 17 00:00:00 2001 From: 1624952103 Date: Wed, 11 Feb 2026 17:21:04 +0800 Subject: [PATCH] =?utf8?q?=E8=BF=90=E5=8A=A8=E5=85=B3=E9=97=AD=E6=B4=BB?= =?utf8?q?=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c index 4b9cf5964..f2e3bd433 100644 --- a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c +++ b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c @@ -1217,10 +1217,14 @@ bool hx3695_init(WORK_MODE_T mode) switch (work_mode_flag) { case HRS_MODE: - if(!uapi_dev_runtime_get_train_status()) - { - tyhx_hrs_set_living(1, 15, 30); - } + if(uapi_dev_runtime_get_train_status()) + { + tyhx_hrs_set_living(0, 0, 0); + } + else + { + tyhx_hrs_set_living(1, 15, 30); + } hx3695_hrs_enable(&ppg_sensor_data); break; -- 2.17.1