]> git.earman.xyz Git - sensor-watch.git/commitdiff
faces/clock: indicate alarm only when necessary
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Sun, 25 Feb 2024 17:11:07 +0000 (14:11 -0300)
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Sun, 25 Feb 2024 18:24:15 +0000 (15:24 -0300)
The alarm state is not modified within the clock face.
Therefore, it only needs to be set when the face is activated.

movement/watch_faces/clock/clock_face.c

index f6c3f3f46763f5b29b9658baedd43462d0cc6569..8a39656965a96d8d4941cfce357592abc9b2a0b8 100644 (file)
@@ -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;