From 4b3fda2b86fc40096ddc9b520e0115ea6c789813 Mon Sep 17 00:00:00 2001 From: 1624952103 Date: Wed, 11 Feb 2026 17:56:10 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E7=BA=A2=E5=A4=96=E4=BD=A9?= =?utf8?q?=E6=88=B4=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c | 13 ++++--------- code/sdk/zhihui/drivers/ppg/hx3695/hx3695.h | 4 ++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c index f2e3bd433..ebdb54683 100644 --- a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c +++ b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c @@ -426,11 +426,6 @@ uint16_t hx3695_read_fifo_data(ppg_sensor_data_t *ppg_sensor_dat) // printf("fifo_out_count:%d\n",fifo_out_count); - if(fifo_out_count > 9) - { - fifo_out_count = 9; - } - return fifo_out_count; } @@ -1618,10 +1613,10 @@ void hx3695_ppg_Int_handle(ppg_sensor_data_t *ppg_sensor_dat) // printf("count:%d\n",count); if(count > 0) { - // if(work_mode_flag == HRS_MODE && count > 9) - // { - // count = 8; - // } + if(work_mode_flag == HRS_MODE && count > 9) + { + count = 8; + } hx3695_check_wear(ppg_sensor_dat,count); if(wear_status == MSG_WEAR) { diff --git a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.h b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.h index d818eda9f..1777d5417 100644 --- a/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.h +++ b/code/sdk/zhihui/drivers/ppg/hx3695/hx3695.h @@ -130,8 +130,8 @@ NEW_GSEN_SCHME DEMO调试使用, 客户关闭 #define LED1N_PD_SEL 0x02 #endif #define CHECK_TOUCH_NUM 5 //��������ʱ,N��data - #define CHECK_WEAR_THRE 30000 - #define CHECK_UNWEAR_THRE 20000 + #define CHECK_WEAR_THRE 7000 + #define CHECK_UNWEAR_THRE 6000 #endif typedef enum { -- 2.17.1