]> git.earman.xyz Git - sensor-watch.git/commitdiff
match complication button press volume to Movement
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 16 Mar 2025 01:43:34 +0000 (21:43 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 16 Mar 2025 01:43:34 +0000 (21:43 -0400)
watch-faces/complication/countdown_face.c
watch-faces/complication/fast_stopwatch_face.c
watch-faces/complication/stopwatch_face.c

index 1ab819fd0a33bf7bfac9b122a42edae5f629ddb1..95a7b40d6dfa2b756224ef070f2c5608e48e223b 100644 (file)
@@ -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) {
index d28832c410b898e11bf600ce17475e4d9db9afc3..4ee8ca65fe25f4bbb768efd705046847b11394ce 100644 (file)
@@ -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
index 83293efd711de8b54278d243700cd52f99f8604c..4a2bfcf9301a504ccb8c093f8bede2c1315fb86a 100644 (file)
@@ -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) {