From 46ac8defdc94c1a998e553d880a542a1de7fd192 Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sun, 23 Oct 2022 14:59:03 -0500 Subject: disable settings hiding by default --- movement/movement.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'movement/movement.c') diff --git a/movement/movement.c b/movement/movement.c index 558afc53..7066df62 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -52,7 +52,7 @@ // Default to no secondary face behaviour. #ifndef MOVEMENT_SECONDARY_FACE_INDEX -#define MOVEMENT_SECONDARY_FACE_INDEX MOVEMENT_NUM_FACES +#define MOVEMENT_SECONDARY_FACE_INDEX 0 #endif #if __EMSCRIPTEN__ @@ -208,7 +208,11 @@ void movement_move_to_face(uint8_t watch_face_index) { } void movement_move_to_next_face(void) { - uint16_t face_max = movement_state.current_watch_face < ((int16_t)MOVEMENT_SECONDARY_FACE_INDEX) ? MOVEMENT_SECONDARY_FACE_INDEX : MOVEMENT_NUM_FACES; +#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 movement_move_to_face((movement_state.current_watch_face + 1) % face_max); } @@ -424,7 +428,7 @@ bool app_loop(void) { && !movement_state.watch_face_changed) { if (movement_state.current_watch_face != 0) { movement_move_to_face(0); - } else if (MOVEMENT_SECONDARY_FACE_INDEX != MOVEMENT_NUM_FACES) { + } else if (MOVEMENT_SECONDARY_FACE_INDEX) { movement_move_to_face(MOVEMENT_SECONDARY_FACE_INDEX); } } -- cgit v1.2.3