summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-01-27 00:08:36 -0600
committerjoeycastillo <joeycastillo@utexas.edu>2023-01-27 00:08:36 -0600
commitc945f323f467803f09a81221cee0c53d95b4cf86 (patch)
tree649e4c65c1ac5ae33602ee3ea612a86e980c09c1
parentf66b276dad46b54a592f1c8e76509f0d16c40c0b (diff)
downloadSensor-Watch-c945f323f467803f09a81221cee0c53d95b4cf86.tar.gz
Sensor-Watch-c945f323f467803f09a81221cee0c53d95b4cf86.tar.bz2
Sensor-Watch-c945f323f467803f09a81221cee0c53d95b4cf86.zip
fix for events firing way too fast
-rw-r--r--movement/movement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/movement/movement.c b/movement/movement.c
index 64159519..902bc4d5 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -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.