From: joeycastillo Date: Fri, 27 Jan 2023 06:08:36 +0000 (-0600) Subject: fix for events firing way too fast X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=c945f323f467803f09a81221cee0c53d95b4cf86;p=sensor-watch.git fix for events firing way too fast --- diff --git a/movement/movement.c b/movement/movement.c index 6415951..902bc4d 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.