]> git.earman.xyz Git - sensor-watch.git/commitdiff
bugfix: activate current watch face when waking from sleep
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 8 Nov 2021 13:11:59 +0000 (07:11 -0600)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 8 Nov 2021 13:11:59 +0000 (07:11 -0600)
movement/movement.c

index 643fc6725ada9b9598166305be96c5a66e41be31..797e75bf9f5873dcdce2d6ac2f15ff89c74caf0c 100644 (file)
@@ -105,7 +105,7 @@ void app_setup() {
             watch_faces[i].setup(&movement_state.settings, &watch_face_contexts[i]);
         }
 
-        watch_faces[0].activate(&movement_state.settings, watch_face_contexts[0]);
+        watch_faces[movement_state.current_watch_face].activate(&movement_state.settings, watch_face_contexts[movement_state.current_watch_face]);
         event.subsecond = 0;
         event.event_type = EVENT_ACTIVATE;
     }