From a539bd7da77d036d4f31f0d009f86bd653187ab6 Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Sun, 8 Sep 2024 18:03:16 -0400 Subject: [PATCH] Don't try to cycle through presets if the preset count is one --- movement/watch_faces/complication/tally_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/movement/watch_faces/complication/tally_face.c b/movement/watch_faces/complication/tally_face.c index 7267b16..3ea5503 100644 --- a/movement/watch_faces/complication/tally_face.c +++ b/movement/watch_faces/complication/tally_face.c @@ -168,7 +168,7 @@ bool tally_face_loop(movement_event_t event, movement_settings_t *settings, void } break; case EVENT_LIGHT_LONG_PRESS: - if (_init_val){ + if (TALLY_FACE_PRESETS_SIZE() > 1 && _init_val){ state->tally_default_idx = (state->tally_default_idx + 1) % TALLY_FACE_PRESETS_SIZE(); state->tally_idx = _tally_default[state->tally_default_idx]; if (settings->bit.button_should_sound) watch_buzzer_play_note(BUZZER_NOTE_E6, 30);