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:
65533c2
)
亮屏只更新一次时间和信号
author
孙春阳
<snickersun@163.com>
Tue, 23 Dec 2025 08:13:52 +0000
(16:13 +0800)
committer
孙春阳
<snickersun@163.com>
Tue, 23 Dec 2025 08:16:08 +0000
(16:16 +0800)
code/sdk/zhihui/4g/cat1Service/Service/cat1_server.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/4g/cat1Service/Service/cat1_server.c
b/code/sdk/zhihui/4g/cat1Service/Service/cat1_server.c
index
e67311f
..
a4246e3
100644
(file)
--- a/
code/sdk/zhihui/4g/cat1Service/Service/cat1_server.c
+++ b/
code/sdk/zhihui/4g/cat1Service/Service/cat1_server.c
@@
-1501,12
+1501,16
@@
static void time_sync_func(void)
}
cat1_gettime();
#endif
- if (cat1_api_need_update_signal())
+ static uint8_t g_signal_already_updated = 0;
+ if (cat1_api_need_update_signal() && g_signal_already_updated == 0)
{
cat1_getsignal();
#ifdef BOARD_LEINIAO
cat1_gettime();
#endif
+ g_signal_already_updated = 1;//已经更新过信号,设置标志位,防止多次更新,符合条件(屏幕亮起)只需要更新一次。
+ }else{
+ g_signal_already_updated = 0;//不需要更新信号,清空标志位,准备下一次可以正常执行更新。
}
#ifdef SUPPORT_CHINA_MOBILE_AI_REGULATION