From 2de1f996e6e35d5dbfde55df4bf14d571db38b5d Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Tue, 13 Aug 2024 21:06:15 +0800 Subject: [PATCH] =?utf8?q?=E6=9A=82=E6=97=B6=E5=85=B3=E9=97=AD=E5=BF=83?= =?utf8?q?=E7=8E=87=E6=95=B0=E6=8D=AE=E8=BE=93=E5=85=A5=E7=9D=A1=E7=9C=A0?= =?utf8?q?=E7=AE=97=E6=B3=95(=E5=BE=85=E6=B5=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/cywee/src/main_dml.c | 2 +- code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/cywee/src/main_dml.c b/code/sdk/drivers/peripheral/cywee/src/main_dml.c index 930b49fca..f2b7bd39b 100644 --- a/code/sdk/drivers/peripheral/cywee/src/main_dml.c +++ b/code/sdk/drivers/peripheral/cywee/src/main_dml.c @@ -458,7 +458,7 @@ void cywee_inactivity_mode_change(int mode) //设置睡眠 memset(&scl, 0, sizeof(scl)); scl.iData[0] = 1; - scl.iData[2] = 1; // 0.不使用心率 1.使用心率 + scl.iData[2] = 0; // 0.不使用心率 1.使用心率 (暂时关闭,不使用心率数据输入算法) CWM_SettingControl(SCL_SLEEP_CONFIG, &scl); memset(&scl, 0, sizeof(scl)); diff --git a/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c b/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c index 29d3cc832..e222917a3 100644 --- a/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c +++ b/code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c @@ -2717,7 +2717,8 @@ static void get_avg_hrs(int32_t hrs) } } - if(hrs_mode_state || uapi_dev_runtime_get_sleep_status() == 1) + // if(hrs_mode_state || uapi_dev_runtime_get_sleep_status() == 1) + if(hrs_mode_state) { cywee_data = hrsresult.lastesthrs; do_cywee_service_check_msg(CYWEE_SERVICE_CMD_HRS_CHANGE,&cywee_data); -- 2.17.1