summaryrefslogtreecommitdiffstats
path: root/movement
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-29 14:04:24 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-29 14:04:24 -0500
commit7529866267dfabdeab495dc17a17f09430848d45 (patch)
tree750bbea87e56f631f8fe34af492ea683b09988e4 /movement
parente63dfc95ec6c3a5ac9969b7c1bec5ccef98d03ed (diff)
downloadSensor-Watch-7529866267dfabdeab495dc17a17f09430848d45.tar.gz
Sensor-Watch-7529866267dfabdeab495dc17a17f09430848d45.tar.bz2
Sensor-Watch-7529866267dfabdeab495dc17a17f09430848d45.zip
movement bugfix: prevent repeated timeout events from stalling watch face
Diffstat (limited to 'movement')
-rw-r--r--movement/movement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/movement/movement.c b/movement/movement.c
index 76cd2252..91cd3912 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -250,6 +250,7 @@ bool app_loop() {
// if we have timed out of our timeout countdown, give the app a hint that they can resign.
if (movement_state.timeout_ticks == 0) {
+ movement_state.timeout_ticks = -1;
event.event_type = EVENT_TIMEOUT;
event.subsecond = movement_state.subsecond;
watch_faces[movement_state.current_watch_face].loop(event, &movement_state.settings, watch_face_contexts[movement_state.current_watch_face]);