diff options
author | Wesley Aptekar-Cassels <me@wesleyac.com> | 2023-11-13 00:16:13 -0500 |
---|---|---|
committer | Wesley Aptekar-Cassels <me@wesleyac.com> | 2024-01-09 16:22:21 -0500 |
commit | 3ee32c6e57e9a741355251f33fbcc323ded249d8 (patch) | |
tree | 8a22c5c4f119f280fa7a4d7acfb43d240bd10cec | |
parent | 6f4917a0d5828dac8751c02e700f30e355f22c87 (diff) | |
download | Sensor-Watch-3ee32c6e57e9a741355251f33fbcc323ded249d8.tar.gz Sensor-Watch-3ee32c6e57e9a741355251f33fbcc323ded249d8.tar.bz2 Sensor-Watch-3ee32c6e57e9a741355251f33fbcc323ded249d8.zip |
Use legacy buzzer functions when playing default tune.
This allows the default tune to be played in LE mode.
Fixes: #275
-rw-r--r-- | movement/movement.c | 7 | ||||
-rw-r--r-- | movement/movement_config.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/movement/movement.c b/movement/movement.c index 0c6ed319..235716c8 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -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) { diff --git a/movement/movement_config.h b/movement/movement_config.h index 6a7f87e0..bafbc5e5 100644 --- a/movement/movement_config.h +++ b/movement/movement_config.h @@ -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_ |