]> git.earman.xyz Git - sensor-watch.git/commitdiff
move to deadline face on alarm
authorKonrad Rieck <konrad@mlsec.org>
Sat, 9 Mar 2024 22:50:47 +0000 (23:50 +0100)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sat, 7 Sep 2024 22:59:04 +0000 (19:59 -0300)
movement/watch_faces/complication/deadline_face.c

index 521c9bba3d1ae66fcd62ce986f9ecc882c17ace3..ae9cab8632e4bd9c93cf3b9d9650988806bc6fd7 100644 (file)
@@ -226,9 +226,11 @@ static void _background_alarm_play(movement_settings_t *settings, deadline_state
 {
     (void) settings;
 
-    /* Use the default alarm from movement */
-    if (state->alarm_enabled)
+    /* Use the default alarm from movement and move to foreground */
+    if (state->alarm_enabled) {
         movement_play_alarm();
+        movement_move_to_face(state->face_idx);
+    }
 }
 
 /* Schedule background alarm */