aboutsummaryrefslogtreecommitdiff
path: root/src/mode.c
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-03-01 10:35:53 +0530
committerAkshay Nair <phenax5@gmail.com>2026-03-01 10:35:53 +0530
commit96b074de6104161c62e09b2b1a725316dbf1c5f3 (patch)
tree0ff68fd7fdf611365a20f718664818f27437e630 /src/mode.c
parent18268280dc6c0bd44035b53655ae43e9c88245bd (diff)
downloaddaft-watch-96b074de6104161c62e09b2b1a725316dbf1c5f3.tar.gz
daft-watch-96b074de6104161c62e09b2b1a725316dbf1c5f3.zip
Add tests for mode state
Diffstat (limited to 'src/mode.c')
-rw-r--r--src/mode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.c b/src/mode.c
index b6fad97..6130372 100644
--- a/src/mode.c
+++ b/src/mode.c
@@ -34,6 +34,7 @@ void apply_button_state(enum ButtonState button_state) {
new_minutes = minutes;
new_hours = hours;
current_digit_index = 0;
+ time_set_timeout_ticks = SET_MODE_TIMEOUT;
current_mode = ModeSetTime;
break;
default:
@@ -49,7 +50,7 @@ void apply_button_state(enum ButtonState button_state) {
return;
}
} else {
- time_set_timeout_ticks = 10 * 1024;
+ time_set_timeout_ticks = SET_MODE_TIMEOUT;
}
switch (button_state) {