]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix for events firing way too fast
authorjoeycastillo <joeycastillo@utexas.edu>
Fri, 27 Jan 2023 06:08:36 +0000 (00:08 -0600)
committerjoeycastillo <joeycastillo@utexas.edu>
Fri, 27 Jan 2023 06:08:36 +0000 (00:08 -0600)
movement/movement.c

index 641595197077570c320c586acb9d86412c25bdb2..902bc4d55fa86ff9aeec516d7717432c7acebf59 100644 (file)
@@ -479,6 +479,7 @@ bool app_loop(void) {
     if (event.event_type) {
         event.subsecond = movement_state.subsecond;
         can_sleep = watch_faces[movement_state.current_watch_face].loop(event, &movement_state.settings, watch_face_contexts[movement_state.current_watch_face]);
+        event.event_type = EVENT_NONE;
     }
 
     // if we have timed out of our timeout countdown, give the app a hint that they can resign.