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:
43927c8
)
在设置亮屏时间添加keep_on状态重置,确保时间设置成功
author
luozheng
<1732036298@qq.com>
Sun, 29 Sep 2024 02:42:59 +0000
(10:42 +0800)
committer
luozheng
<1732036298@qq.com>
Sun, 29 Sep 2024 02:42:59 +0000
(10:42 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utils/custom_utils.c
b/code/sdk/drivers/peripheral/utils/custom_utils.c
index
3f7c02d
..
5a651dc
100644
(file)
--- a/
code/sdk/drivers/peripheral/utils/custom_utils.c
+++ b/
code/sdk/drivers/peripheral/utils/custom_utils.c
@@
-1140,6
+1140,7
@@
void uapi_setScreenDuration(int32_t time)
{
const power_display_svr_api_t *display_api = power_display_svr_get_api();
if(display_api) {
+ display_api->set_screen_set_keepon_timeout(0);
errcode_t ret = display_api->set_screen_auto_off_timeout(time);
}
}