diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-20 17:02:17 -0600 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-20 17:02:17 -0600 |
commit | 60fe9691917f7e40effc72b1b6c929f9ba0ba3ee (patch) | |
tree | fe3e64a49d0d440f94e3f8ac948c71edf8b2538b /movement/movement.c | |
parent | 03e107b81a63c08443165497d57dc2d756b78094 (diff) | |
download | Sensor-Watch-60fe9691917f7e40effc72b1b6c929f9ba0ba3ee.tar.gz Sensor-Watch-60fe9691917f7e40effc72b1b6c929f9ba0ba3ee.tar.bz2 Sensor-Watch-60fe9691917f7e40effc72b1b6c929f9ba0ba3ee.zip |
Movement: give watch faces their index at setup time
Diffstat (limited to 'movement/movement.c')
-rw-r--r-- | movement/movement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/movement.c b/movement/movement.c index 783c666c..3e22ace5 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -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]); |