From: Matheus Afonso Martins Moreira Date: Sun, 25 Feb 2024 17:11:07 +0000 (-0300) Subject: faces/clock: indicate alarm only when necessary X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=5c376d9b9a880e10f3b635508aa21847ea347e6f;p=sensor-watch.git faces/clock: indicate alarm only when necessary The alarm state is not modified within the clock face. Therefore, it only needs to be set when the face is activated. --- diff --git a/movement/watch_faces/clock/clock_face.c b/movement/watch_faces/clock/clock_face.c index f6c3f3f..8a39656 100644 --- a/movement/watch_faces/clock/clock_face.c +++ b/movement/watch_faces/clock/clock_face.c @@ -237,8 +237,6 @@ bool clock_face_loop(movement_event_t event, movement_settings_t *settings, void clock_display_clock(settings, state, current); clock_check_battery_periodically(state, current); - - clock_indicate_alarm(settings); clock_indicate_low_available_power(state); state->date_time.previous = current;