diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 16:25:30 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 16:34:12 -0400 |
commit | 05fe055f99b9b950086b1e38a9c795d7e076c5b2 (patch) | |
tree | 9f086f0e5f11c24868295bcc3c37cb4063a861d9 /movement/watch_faces/settings/preferences_face.h | |
parent | 0cfb37c6716326dea78a8dca512d286e6484e509 (diff) | |
download | Sensor-Watch-05fe055f99b9b950086b1e38a9c795d7e076c5b2.tar.gz Sensor-Watch-05fe055f99b9b950086b1e38a9c795d7e076c5b2.tar.bz2 Sensor-Watch-05fe055f99b9b950086b1e38a9c795d7e076c5b2.zip |
automatically determine number of watch faces
Diffstat (limited to 'movement/watch_faces/settings/preferences_face.h')
-rw-r--r-- | movement/watch_faces/settings/preferences_face.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/movement/watch_faces/settings/preferences_face.h b/movement/watch_faces/settings/preferences_face.h index 5b735db9..af628ba3 100644 --- a/movement/watch_faces/settings/preferences_face.h +++ b/movement/watch_faces/settings/preferences_face.h @@ -8,12 +8,12 @@ void preferences_face_activate(movement_settings_t *settings, void *context); bool preferences_face_loop(movement_event_t event, movement_settings_t *settings, void *context); void preferences_face_resign(movement_settings_t *settings, void *context); -#define preferences_face { \ - preferences_face_setup, \ - preferences_face_activate, \ - preferences_face_loop, \ - preferences_face_resign, \ - NULL, \ -} +static const watch_face_t preferences_face = { + preferences_face_setup, + preferences_face_activate, + preferences_face_loop, + preferences_face_resign, + NULL +}; #endif // PREFERENCES_FACE_H_
\ No newline at end of file |