]> git.earman.xyz Git - sensor-watch.git/commitdiff
launcher: fix high beep on return to clock
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 19:27:29 +0000 (15:27 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 4 Oct 2021 19:27:29 +0000 (15:27 -0400)
launcher/launcher.c

index d6883567b780eb84023bc6324ec73ec1d4e8d71b..160b8d2a4ec9d32abf3d26d634f86a30c314c9bf 100644 (file)
@@ -91,7 +91,7 @@ bool app_loop() {
     if (launcher_state.widget_changed) {
         if (launcher_state.launcher_settings.bit.button_should_sound) {
             // low note for nonzero case, high note for return to widget 0
-            watch_buzzer_play_note(launcher_state.current_widget ? BUZZER_NOTE_C7 : BUZZER_NOTE_C8, 50);
+            watch_buzzer_play_note(launcher_state.next_widget ? BUZZER_NOTE_C7 : BUZZER_NOTE_C8, 50);
         }
         widgets[launcher_state.current_widget].resign(&launcher_state.launcher_settings, widget_contexts[launcher_state.current_widget]);
         launcher_state.current_widget = launcher_state.next_widget;