From c49573b7f3bd7e68bc8a3c58f62fc815c56c6a02 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sat, 15 Mar 2025 21:43:34 -0400 Subject: [PATCH] match complication button press volume to Movement --- watch-faces/complication/countdown_face.c | 3 +-- watch-faces/complication/fast_stopwatch_face.c | 2 +- watch-faces/complication/stopwatch_face.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/watch-faces/complication/countdown_face.c b/watch-faces/complication/countdown_face.c index 1ab819fd..95a7b40d 100644 --- a/watch-faces/complication/countdown_face.c +++ b/watch-faces/complication/countdown_face.c @@ -67,8 +67,7 @@ static inline void load_countdown(countdown_state_t *state) { static inline void button_beep() { // play a beep as confirmation for a button press (if applicable) - if (movement_button_should_sound()) - watch_buzzer_play_note(BUZZER_NOTE_C7, 50); + if (movement_button_should_sound()) watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT); } static void schedule_countdown(countdown_state_t *state) { diff --git a/watch-faces/complication/fast_stopwatch_face.c b/watch-faces/complication/fast_stopwatch_face.c index d28832c4..4ee8ca65 100644 --- a/watch-faces/complication/fast_stopwatch_face.c +++ b/watch-faces/complication/fast_stopwatch_face.c @@ -121,7 +121,7 @@ void irq_handler_tc1(void) { static inline void _button_beep() { // play a beep as confirmation for a button press (if applicable) - if (movement_button_should_sound()) watch_buzzer_play_note(BUZZER_NOTE_C7, 50); + if (movement_button_should_sound()) watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT); } /// @brief Display minutes, seconds and fractions derived from 128 Hz tick counter diff --git a/watch-faces/complication/stopwatch_face.c b/watch-faces/complication/stopwatch_face.c index 83293efd..4a2bfcf9 100644 --- a/watch-faces/complication/stopwatch_face.c +++ b/watch-faces/complication/stopwatch_face.c @@ -118,7 +118,7 @@ bool stopwatch_face_loop(movement_event_t event, void *context) { break; case EVENT_ALARM_BUTTON_DOWN: if (movement_button_should_sound()) { - watch_buzzer_play_note(BUZZER_NOTE_C8, 50); + watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT); } stopwatch_state->running = !stopwatch_state->running; if (stopwatch_state->running) {