]> git.earman.xyz Git - sensor-watch.git/commitdiff
movement bugfix: prevent repeated timeout events from stalling watch face
authorJoey Castillo <joeycastillo@utexas.edu>
Mon, 29 Nov 2021 19:04:24 +0000 (14:04 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Mon, 29 Nov 2021 19:04:24 +0000 (14:04 -0500)
movement/movement.c

index 76cd2252247c97649570de2272cc3f84cf4d91a7..91cd3912ee94eee25a75e54ca8bd843e303b7b7f 100644 (file)
@@ -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]);