diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2023-01-17 08:52:01 -0600 |
---|---|---|
committer | joeycastillo <joeycastillo@utexas.edu> | 2023-01-17 08:52:01 -0600 |
commit | 5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116 (patch) | |
tree | 3adc55d137265d6789fa74760a4db00389f22503 /watch-library/hardware | |
parent | ca05567576343d7dfe1ee5be8d6347cf463dad7e (diff) | |
download | Sensor-Watch-5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116.tar.gz Sensor-Watch-5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116.tar.bz2 Sensor-Watch-5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116.zip |
Revert "never disable buzzer output"
This reverts commit 851d047c818dacc30c86f4d87f33247dcfb0095c.
Diffstat (limited to 'watch-library/hardware')
-rw-r--r-- | watch-library/hardware/watch/watch_buzzer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/watch-library/hardware/watch/watch_buzzer.c b/watch-library/hardware/watch/watch_buzzer.c index b999397a..18fb4db0 100644 --- a/watch-library/hardware/watch/watch_buzzer.c +++ b/watch-library/hardware/watch/watch_buzzer.c @@ -147,7 +147,6 @@ inline void watch_enable_buzzer(void) { if (!hri_tcc_get_CTRLA_reg(TCC0, TCC_CTRLA_ENABLE)) { _watch_enable_tcc(); } - gpio_set_pin_direction(BUZZER, GPIO_DIRECTION_OUT); } inline void watch_set_buzzer_period(uint32_t period) { @@ -157,7 +156,6 @@ inline void watch_set_buzzer_period(uint32_t period) { void watch_disable_buzzer(void) { _watch_disable_tcc(); - watch_set_buzzer_off(); } inline void watch_set_buzzer_on(void) { @@ -166,8 +164,8 @@ inline void watch_set_buzzer_on(void) { } inline void watch_set_buzzer_off(void) { + gpio_set_pin_direction(BUZZER, GPIO_DIRECTION_OFF); gpio_set_pin_function(BUZZER, GPIO_PIN_FUNCTION_OFF); - gpio_set_pin_level(BUZZER, true); } void watch_buzzer_play_note(BuzzerNote note, uint16_t duration_ms) { |