diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-04 15:38:42 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-04 15:38:42 -0500 |
commit | c5ecf1dabdc66818892f37f37bf75cb39d93b5f7 (patch) | |
tree | dd054cdb73b1dee7f4c34f43f50b2711fec35f8e /movement/README.md | |
parent | 16ac7534c4f5f0b13c2609c26a139e6df3139170 (diff) | |
parent | 311cfdb5f45cab25053d7a188a2eb30e2c5e781b (diff) | |
download | Sensor-Watch-c5ecf1dabdc66818892f37f37bf75cb39d93b5f7.tar.gz Sensor-Watch-c5ecf1dabdc66818892f37f37bf75cb39d93b5f7.tar.bz2 Sensor-Watch-c5ecf1dabdc66818892f37f37bf75cb39d93b5f7.zip |
Merge branch 'main' of https://github.com/joeycastillo/Sensor-Watch into main
Diffstat (limited to 'movement/README.md')
-rw-r--r-- | movement/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/README.md b/movement/README.md index f5b9cb15..66c1f890 100644 --- a/movement/README.md +++ b/movement/README.md @@ -91,7 +91,7 @@ typedef struct { Finally, we define the four required functions, and define the watch face struct that users will use to add the face to their watch: ```c -void pulsometer_face_setup(movement_settings_t *settings, void ** context_ptr); +void pulsometer_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr); void pulsometer_face_activate(movement_settings_t *settings, void *context); bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context); void pulsometer_face_resign(movement_settings_t *settings, void *context); @@ -119,7 +119,7 @@ These define the tick frequency: when the pulsometer widget is updating the scre #### Watch Face Setup ```c -void pulsometer_face_setup(movement_settings_t *settings, void ** context_ptr) { +void pulsometer_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) { (void) settings; if (*context_ptr == NULL) *context_ptr = malloc(sizeof(pulsometer_state_t)); } |