]> git.earman.xyz Git - sensor-watch.git/commitdiff
Make deadline face respect button volumes
authorAnte Vukorepa <o.orcinus@gmail.com>
Fri, 14 Nov 2025 18:32:51 +0000 (19:32 +0100)
committerJoey Castillo <joeycastillo@utexas.edu>
Tue, 18 Nov 2025 16:58:50 +0000 (11:58 -0500)
Just blindly replaced watch_buzzer_play_note with watch_buzzer_play_note_with_volume

watch-faces/complication/deadline_face.c

index 41240e76693ceb1ffa37707bcfd0afad8ce1ff98..d3204f20c14063aad89bb08c61b95addcede04fa 100644 (file)
@@ -161,19 +161,19 @@ static inline void _beep(beep_type_t beep_type)
 
     switch (beep_type) {
         case BEEP_BUTTON:
-            watch_buzzer_play_note(BUZZER_NOTE_C7, 50);
+            watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, movement_button_volume());
             break;
 
         case BEEP_ENABLE:
-            watch_buzzer_play_note(BUZZER_NOTE_G7, 50);
+            watch_buzzer_play_note_with_volume(BUZZER_NOTE_G7, 50, movement_button_volume());
             watch_buzzer_play_note(BUZZER_NOTE_REST, 75);
-            watch_buzzer_play_note(BUZZER_NOTE_C8, 75);
+            watch_buzzer_play_note_with_volume(BUZZER_NOTE_C8, 50, movement_button_volume());
             break;
 
         case BEEP_DISABLE:
-            watch_buzzer_play_note(BUZZER_NOTE_C8, 50);
+            watch_buzzer_play_note_with_volume(BUZZER_NOTE_C8, 50, movement_button_volume());
             watch_buzzer_play_note(BUZZER_NOTE_REST, 75);
-            watch_buzzer_play_note(BUZZER_NOTE_G7, 75);
+            watch_buzzer_play_note_with_volume(BUZZER_NOTE_G7, 50, movement_button_volume());
             break;
     }
 }