Movement: give watch faces their index at setup time

This commit is contained in:
Joey Castillo
2021-12-20 17:02:17 -06:00
parent 03e107b81a
commit 60fe969191
33 changed files with 49 additions and 34 deletions

View File

@@ -218,7 +218,7 @@ void app_setup(void) {
movement_request_tick_frequency(1);
for(uint8_t i = 0; i < MOVEMENT_NUM_FACES; i++) {
watch_faces[i].setup(&movement_state.settings, &watch_face_contexts[i]);
watch_faces[i].setup(&movement_state.settings, i, &watch_face_contexts[i]);
}
watch_faces[movement_state.current_watch_face].activate(&movement_state.settings, watch_face_contexts[movement_state.current_watch_face]);