aboutsummaryrefslogtreecommitdiff
path: root/ui/simple/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/simple/simple.c')
-rw-r--r--ui/simple/simple.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/simple/simple.c b/ui/simple/simple.c
index 38e2922..668a0cf 100644
--- a/ui/simple/simple.c
+++ b/ui/simple/simple.c
@@ -139,7 +139,14 @@ uint8_t off_state(Event event, uint16_t arg) {
return EVENT_HANDLED;
}
- if (event == EV_1click) {
+ else if (event == EV_tick) {
+ if (arg > HOLD_TIMEOUT) {
+ go_to_standby = 1;
+ }
+ return EVENT_HANDLED;
+ }
+
+ else if (event == EV_1click) {
set_state(aux_state, 0);
return EVENT_HANDLED;
}