aboutsummaryrefslogtreecommitdiff
path: root/src/mode.h
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.h
parent18268280dc6c0bd44035b53655ae43e9c88245bd (diff)
downloaddaft-watch-96b074de6104161c62e09b2b1a725316dbf1c5f3.tar.gz
daft-watch-96b074de6104161c62e09b2b1a725316dbf1c5f3.zip
Add tests for mode state
Diffstat (limited to 'src/mode.h')
-rw-r--r--src/mode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mode.h b/src/mode.h
index db65fc8..6bd5a35 100644
--- a/src/mode.h
+++ b/src/mode.h
@@ -6,6 +6,8 @@ enum Mode {
ModeSetTime,
};
+#define SET_MODE_TIMEOUT 1000
+
enum ButtonState {
ButtonIdle = 0,
ButtonActive = 1,
@@ -19,4 +21,8 @@ extern volatile uint8_t new_hours;
void apply_button_state(enum ButtonState button_state);
+// Just for tests
+extern volatile uint8_t current_digit_index;
+extern volatile uint16_t time_set_timeout_ticks;
+
#endif