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:
0654fd6
)
解决刚刚开机时不触摸屏幕不息屏问题
author
SnickerSun
<snickersun@163.com>
Mon, 3 Jun 2024 14:04:30 +0000
(22:04 +0800)
committer
SnickerSun
<snickersun@163.com>
Mon, 3 Jun 2024 14:04:30 +0000
(22:04 +0800)
code/sdk/application/wearable/service/power_manager/src/filters/timer_event_filter.c
patch
|
blob
|
history
code/sdk/application/wearable/service/power_manager/src/power_display_service.c
patch
|
blob
|
history
diff --git
a/code/sdk/application/wearable/service/power_manager/src/filters/timer_event_filter.c
b/code/sdk/application/wearable/service/power_manager/src/filters/timer_event_filter.c
index
5630f7d
..
32eced4
100755
(executable)
--- a/
code/sdk/application/wearable/service/power_manager/src/filters/timer_event_filter.c
+++ b/
code/sdk/application/wearable/service/power_manager/src/filters/timer_event_filter.c
@@
-26,9
+26,9
@@
static input_action_t filter_timer_execute_system_rule(screen_context_t *current
ac = RESET_TIMER;
}
} else if (event == DEFAULT_TIMER_TIME_OUT) {
- if (sc->press_state == MC_TP_RELEASE && sc->time_out_enable == true) {
- ac = TURN_OFF_SCREEN;
- }
+
if (sc->press_state == MC_TP_RELEASE && sc->time_out_enable == true) {
+
ac = TURN_OFF_SCREEN;
+
}
} else if (event == KEEP_ON_TIMER_TIME_OUT) {
ac = RESET_TIMER;
}
diff --git
a/code/sdk/application/wearable/service/power_manager/src/power_display_service.c
b/code/sdk/application/wearable/service/power_manager/src/power_display_service.c
index
32f980a
..
243c31b
100755
(executable)
--- a/
code/sdk/application/wearable/service/power_manager/src/power_display_service.c
+++ b/
code/sdk/application/wearable/service/power_manager/src/power_display_service.c
@@
-40,7
+40,7
@@
static screen_context_t g_screen_context = {
.brightness_value = 50,
.time_out_enable = true,
.last_gui_event_stamp = 0,
- .press_state =
0
,
+ .press_state =
MC_TP_RELEASE
,
};
static unsigned long g_power_display_queue_id = 0;