From: Joey Castillo Date: Mon, 29 Nov 2021 19:04:24 +0000 (-0500) Subject: movement bugfix: prevent repeated timeout events from stalling watch face X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=7529866267dfabdeab495dc17a17f09430848d45;p=sensor-watch.git movement bugfix: prevent repeated timeout events from stalling watch face --- diff --git a/movement/movement.c b/movement/movement.c index 76cd225..91cd391 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]);