diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2023-01-03 21:24:14 -0600 |
---|---|---|
committer | joeycastillo <joeycastillo@utexas.edu> | 2023-01-03 21:24:14 -0600 |
commit | 851d047c818dacc30c86f4d87f33247dcfb0095c (patch) | |
tree | 0c21fa65a38a899e540d369c6e178284a739afbc /movement | |
parent | 801230cc3ab910af73a56738f9b539597e15fa56 (diff) | |
download | Sensor-Watch-851d047c818dacc30c86f4d87f33247dcfb0095c.tar.gz Sensor-Watch-851d047c818dacc30c86f4d87f33247dcfb0095c.tar.bz2 Sensor-Watch-851d047c818dacc30c86f4d87f33247dcfb0095c.zip |
never disable buzzer output
Diffstat (limited to 'movement')
-rw-r--r-- | movement/watch_faces/clock/simple_clock_face.c | 4 | ||||
-rw-r--r-- | movement/watch_faces/clock/weeknumber_clock_face.c | 4 | ||||
-rw-r--r-- | movement/watch_faces/complication/alarm_face.c | 4 |
3 files changed, 1 insertions, 11 deletions
diff --git a/movement/watch_faces/clock/simple_clock_face.c b/movement/watch_faces/clock/simple_clock_face.c index 7721b12a..d66e5886 100644 --- a/movement/watch_faces/clock/simple_clock_face.c +++ b/movement/watch_faces/clock/simple_clock_face.c @@ -144,12 +144,8 @@ bool simple_clock_face_loop(movement_event_t event, movement_settings_t *setting // if we are in the foreground, we can just beep. movement_play_signal(); } else { - // if we were in the background, we need to enable the buzzer peripheral first, - watch_enable_buzzer(); // beep quickly (this call blocks for 275 ms), movement_play_signal(); - // and then turn the buzzer peripheral off again. - watch_disable_buzzer(); } break; default: diff --git a/movement/watch_faces/clock/weeknumber_clock_face.c b/movement/watch_faces/clock/weeknumber_clock_face.c index e49e5abf..deaaedbd 100644 --- a/movement/watch_faces/clock/weeknumber_clock_face.c +++ b/movement/watch_faces/clock/weeknumber_clock_face.c @@ -140,12 +140,8 @@ bool weeknumber_clock_face_loop(movement_event_t event, movement_settings_t *set // if we are in the foreground, we can just beep. movement_play_signal(); } else { - // if we were in the background, we need to enable the buzzer peripheral first, - watch_enable_buzzer(); // beep quickly (this call blocks for 275 ms), movement_play_signal(); - // and then turn the buzzer peripheral off again. - watch_disable_buzzer(); } break; default: diff --git a/movement/watch_faces/complication/alarm_face.c b/movement/watch_faces/complication/alarm_face.c index 35e2890f..181a5aba 100644 --- a/movement/watch_faces/complication/alarm_face.c +++ b/movement/watch_faces/complication/alarm_face.c @@ -421,10 +421,8 @@ bool alarm_face_loop(movement_event_t event, movement_settings_t *settings, void if (watch_is_buzzer_or_led_enabled()) { _alarm_play_short_beep(state->alarm[state->alarm_playing_idx].pitch); } else { - // enable, play beep and disable buzzer again - watch_enable_buzzer(); + // play beep _alarm_play_short_beep(state->alarm[state->alarm_playing_idx].pitch); - watch_disable_buzzer(); } } else { // regular alarm beeps |