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:
aa4ebfe
)
优化活体检测处理
3070/1
3070/head
3084/target/1
author
penglei
<1624952103@qq.com>
Tue, 13 Jan 2026 03:51:44 +0000
(11:51 +0800)
committer
penglei
<1624952103@qq.com>
Tue, 13 Jan 2026 03:51:44 +0000
(11:51 +0800)
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
b/code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
index
ef36bd7
..
7bc7cc4
100644
(file)
--- a/
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
+++ b/
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
@@
-1149,6
+1149,19
@@
void cywee_wearstatus_update(int wearstatus)
cywee_inactivity_mode_change(INACTIVITY_MODE_SEDENTARY_AND_NAP);
}
}
+ else if(uapi_dev_runtime_get_sleep_monitoring_status())
+ {
+ if(uapi_dev_runtime_get_sleep_status())
+ {
+ uapi_dev_runtime_set_absolute_static_status(1);
+ cywee_get_sleep_data(1);
+ }
+ else
+ {
+ cywee_inactivity_mode_change(INACTIVITY_MODE_NOTHING);
+ cywee_inactivity_mode_change(INACTIVITY_MODE_SLEEPING);
+ }
+ }
wearstatus = 0;
}