match complication button press volume to Movement
This commit is contained in:
parent
b9c886f045
commit
c49573b7f3
@ -67,8 +67,7 @@ static inline void load_countdown(countdown_state_t *state) {
|
|||||||
|
|
||||||
static inline void button_beep() {
|
static inline void button_beep() {
|
||||||
// play a beep as confirmation for a button press (if applicable)
|
// play a beep as confirmation for a button press (if applicable)
|
||||||
if (movement_button_should_sound())
|
if (movement_button_should_sound()) watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT);
|
||||||
watch_buzzer_play_note(BUZZER_NOTE_C7, 50);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void schedule_countdown(countdown_state_t *state) {
|
static void schedule_countdown(countdown_state_t *state) {
|
||||||
|
|||||||
@ -121,7 +121,7 @@ void irq_handler_tc1(void) {
|
|||||||
|
|
||||||
static inline void _button_beep() {
|
static inline void _button_beep() {
|
||||||
// play a beep as confirmation for a button press (if applicable)
|
// play a beep as confirmation for a button press (if applicable)
|
||||||
if (movement_button_should_sound()) watch_buzzer_play_note(BUZZER_NOTE_C7, 50);
|
if (movement_button_should_sound()) watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Display minutes, seconds and fractions derived from 128 Hz tick counter
|
/// @brief Display minutes, seconds and fractions derived from 128 Hz tick counter
|
||||||
|
|||||||
@ -118,7 +118,7 @@ bool stopwatch_face_loop(movement_event_t event, void *context) {
|
|||||||
break;
|
break;
|
||||||
case EVENT_ALARM_BUTTON_DOWN:
|
case EVENT_ALARM_BUTTON_DOWN:
|
||||||
if (movement_button_should_sound()) {
|
if (movement_button_should_sound()) {
|
||||||
watch_buzzer_play_note(BUZZER_NOTE_C8, 50);
|
watch_buzzer_play_note_with_volume(BUZZER_NOTE_C7, 50, WATCH_BUZZER_VOLUME_SOFT);
|
||||||
}
|
}
|
||||||
stopwatch_state->running = !stopwatch_state->running;
|
stopwatch_state->running = !stopwatch_state->running;
|
||||||
if (stopwatch_state->running) {
|
if (stopwatch_state->running) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user