projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc281b7
)
优化n9睡眠佩戴检测
author
penglei
<1624952103@qq.com>
Wed, 22 Oct 2025 01:43:50 +0000
(09:43 +0800)
committer
penglei
<1624952103@qq.com>
Wed, 22 Oct 2025 01:43:50 +0000
(09:43 +0800)
code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c
b/code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c
index
fe14bd1
..
1396f08
100644
(file)
--- a/
code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c
+++ b/
code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c
@@
-1897,11
+1897,11
@@
void pah8009_control(char *mode,uint8_t enable)
pah_sensor_stop();
work_mode = 0;
- if(uapi_dev_runtime_get_sleep_monitoring_status() && uapi_dev_runtime_get_hrs_passivity_flag())
- {
- pah8009_wearstatus_update(history_wear_status);
- uapi_dev_runtime_set_hrs_passivity(0);
- }
+
//
if(uapi_dev_runtime_get_sleep_monitoring_status() && uapi_dev_runtime_get_hrs_passivity_flag())
+
//
{
+
//
pah8009_wearstatus_update(history_wear_status);
+
//
uapi_dev_runtime_set_hrs_passivity(0);
+
//
}
}
else
{