]> git.earman.xyz Git - sensor-watch.git/commitdiff
Add sound to pause/resume button
authorEkaitz Zarraga <ekaitz@elenq.tech>
Sat, 21 Oct 2023 13:47:26 +0000 (15:47 +0200)
committerEkaitz Zarraga <ekaitz@elenq.tech>
Sat, 21 Oct 2023 13:47:26 +0000 (15:47 +0200)
movement/watch_faces/complication/couchTo5k_face.c

index ca63b76f3e6b144ad45267d9f6cc263b2b637347..79c22a5b1c6dc8300cf67b9ab32353192f419f50 100644 (file)
@@ -214,6 +214,9 @@ bool couchTo5k_face_loop(movement_event_t event, movement_settings_t *settings,
             }
             break;
         case EVENT_ALARM_BUTTON_UP:
+            if (settings->bit.button_should_sound) {
+                watch_buzzer_play_note(BUZZER_NOTE_C8, 50);
+            }
             paused = !paused;
             break;
         case EVENT_TIMEOUT: