summaryrefslogtreecommitdiffstats
path: root/movement/movement.c
diff options
context:
space:
mode:
Diffstat (limited to 'movement/movement.c')
-rw-r--r--movement/movement.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/movement/movement.c b/movement/movement.c
index 7066df62..a464313e 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -208,11 +208,12 @@ void movement_move_to_face(uint8_t watch_face_index) {
}
void movement_move_to_next_face(void) {
-#if MOVEMENT_SECONDARY_FACE_INDEX
- uint16_t face_max = (movement_state.current_watch_face < (int16_t)MOVEMENT_SECONDARY_FACE_INDEX) ? MOVEMENT_SECONDARY_FACE_INDEX : MOVEMENT_NUM_FACES;
-#else
- uint16_t face_max = MOVEMENT_NUM_FACES;
-#endif
+ uint16_t face_max;
+ if (MOVEMENT_SECONDARY_FACE_INDEX) {
+ face_max = (movement_state.current_watch_face < (int16_t)MOVEMENT_SECONDARY_FACE_INDEX) ? MOVEMENT_SECONDARY_FACE_INDEX : MOVEMENT_NUM_FACES;
+ } else {
+ face_max = MOVEMENT_NUM_FACES;
+ }
movement_move_to_face((movement_state.current_watch_face + 1) % face_max);
}