fix signal tunes not firing in background, and split out foreground/background chime functions
This commit is contained in:
@@ -294,9 +294,27 @@ void movement_request_wake() {
|
||||
}
|
||||
|
||||
void movement_play_signal(void) {
|
||||
watch_buzzer_play_note(BUZZER_NOTE_C8, 75);
|
||||
watch_buzzer_play_note(BUZZER_NOTE_REST, 100);
|
||||
watch_buzzer_play_note(BUZZER_NOTE_C8, 100);
|
||||
}
|
||||
|
||||
void movement_play_signal_background(void) {
|
||||
watch_enable_buzzer();
|
||||
movement_play_signal();
|
||||
watch_disable_buzzer();
|
||||
}
|
||||
|
||||
void movement_play_tune(void) {
|
||||
watch_buzzer_play_sequence(signal_tune, NULL);
|
||||
}
|
||||
|
||||
/* Special version of movement_play_tune meant for use during LE mode */
|
||||
void movement_play_tune_background(void) {
|
||||
watch_enable_buzzer();
|
||||
watch_buzzer_play_sequence(signal_tune, watch_disable_buzzer);
|
||||
}
|
||||
|
||||
void movement_play_alarm(void) {
|
||||
movement_play_alarm_beeps(5, BUZZER_NOTE_C8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user