move buzzer enabled detection logic into movement for movement_play_signal/tune

this way watch faces don't have to disable/enable the buzzer themselves
before calling movement_play_signal() and movement_play_tune()
This commit is contained in:
Jeremy O'Brien
2023-09-23 10:54:49 -04:00
parent bfde84f01d
commit 45f402b4ec
6 changed files with 17 additions and 35 deletions

View File

@@ -130,11 +130,7 @@ bool weeknumber_clock_face_loop(movement_event_t event, movement_settings_t *set
case EVENT_BACKGROUND_TASK:
// uncomment this line to snap back to the clock face when the hour signal sounds:
// movement_move_to_face(state->watch_face_index);
if (watch_is_buzzer_or_led_enabled()) {
movement_play_signal();
} else {
movement_play_signal_background();
}
movement_play_signal();
break;
default:
movement_default_loop_handler(event, settings);