]> git.earman.xyz Git - sensor-watch.git/commitdiff
Use legacy buzzer functions when playing default tune.
authorWesley Aptekar-Cassels <me@wesleyac.com>
Mon, 13 Nov 2023 05:16:13 +0000 (00:16 -0500)
committerWesley Aptekar-Cassels <me@wesleyac.com>
Tue, 9 Jan 2024 21:22:21 +0000 (16:22 -0500)
This allows the default tune to be played in LE mode.

Fixes: #275
movement/movement.c
movement/movement_config.h

index 0c6ed31978c6076122be9215a12cda29129797f7..235716c852552fbcc7c51902e862ebf542ca4c55 100644 (file)
@@ -294,7 +294,14 @@ void movement_request_wake() {
 }
 
 void movement_play_signal(void) {
+#ifdef SIGNAL_TUNE_DEFAULT
+    watch_buzzer_play_note(BUZZER_NOTE_C8, 75);
+    watch_buzzer_play_note(BUZZER_NOTE_REST, 100);
+    watch_buzzer_play_note(BUZZER_NOTE_C8, 100);
+#else
+    // Does not work in LE mode.
     watch_buzzer_play_sequence(signal_tune, NULL);
+#endif // SIGNAL_TUNE_DEFAULT
 }
 
 void movement_play_alarm(void) {
index 6a7f87e00a8e621b542dd710471d8a839ae09dec..bafbc5e536d0ca3c18d3b920d3d1a9316448ddb9 100644 (file)
@@ -49,7 +49,8 @@ const watch_face_t watch_faces[] = {
  */
 #define MOVEMENT_SECONDARY_FACE_INDEX (MOVEMENT_NUM_FACES - 2) // or (0)
 
-/* Custom hourly chime tune. Check movement_custom_signal_tunes.h for options */
+/* Custom hourly chime tune. Check movement_custom_signal_tunes.h for options.
+ * Custom tunes do not currently work in LE mode. */
 #define SIGNAL_TUNE_DEFAULT
 
 #endif // MOVEMENT_CONFIG_H_