Movement: give watch faces their index at setup time
This commit is contained in:
@@ -14,8 +14,9 @@ typedef enum {
|
||||
DEMO_FACE_NUM_FACES
|
||||
} demo_face_index_t;
|
||||
|
||||
void demo_face_setup(movement_settings_t *settings, void ** context_ptr) {
|
||||
void demo_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
|
||||
(void) settings;
|
||||
(void) watch_face_index;
|
||||
if (*context_ptr == NULL) {
|
||||
*context_ptr = malloc(sizeof(demo_face_index_t));
|
||||
memset(*context_ptr, 0, sizeof(demo_face_index_t));
|
||||
|
||||
Reference in New Issue
Block a user