]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fixed the bug of the text not resetting after a timeout
authorDavid Volovskiy <devolov@gmail.com>
Mon, 19 Aug 2024 03:55:54 +0000 (23:55 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Tue, 3 Sep 2024 20:11:54 +0000 (16:11 -0400)
movement/watch_faces/complication/wordle_face.c

index 59edb9d3705e6fa8c40c278200f04ac83d3a4f7d..90cec69eae4dc654d46be968de356f9d40726ad5 100644 (file)
@@ -634,8 +634,11 @@ bool wordle_face_loop(movement_event_t event, movement_settings_t *settings, voi
         case EVENT_ACTIVATE:
             break;
         case EVENT_TIMEOUT:
-            if (state->curr_screen >= SCREEN_RESULT)
+            if (state->curr_screen >= SCREEN_RESULT) {
+                reset_incorrect_elements(state);
+                state->position = get_first_pos(state->word_elements_result); 
                 display_title(state);
+            }
             break;
         case EVENT_LOW_ENERGY_UPDATE:
             if (state->curr_screen != SCREEN_TITLE)