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/movement_config.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/movement_config.h')
-rw-r--r-- | movement/movement_config.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/movement/movement_config.h b/movement/movement_config.h index 172736f1..e95e46c0 100644 --- a/movement/movement_config.h +++ b/movement/movement_config.h @@ -6,13 +6,12 @@ #include "set_time_face.h" #include "pulseometer_face.h" -#define MOVEMENT_NUM_FACES 3 - -watch_face_t watch_faces[MOVEMENT_NUM_FACES] = { +const watch_face_t watch_faces[] = { simple_clock_face, preferences_face, set_time_face, }; +#define MOVEMENT_NUM_FACES (sizeof(watch_faces) / sizeof(watch_face_t)) #endif // MOVEMENT_CONFIG_H_ |