From: 1624952103 Date: Wed, 11 Feb 2026 09:56:10 +0000 (+0800) Subject: 优化红外佩戴阈值 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3212%2Fhead;p=mirrors%2FFD230.git 优化红外佩戴阈值 --- 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 {