Skip to content

Commit ae31c4a

Browse files
authored
Merge pull request #889 from tannewt/audioio_timers_in_use
Turn off timer on AudioOut deinit.
2 parents ea95eb7 + bf1f0b3 commit ae31c4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/atmel-samd/common-hal/audioio/AudioOut.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ void common_hal_audioio_audioout_deinit(audioio_audioout_obj_t* self) {
240240

241241
disable_event_channel(self->tc_to_dac_event_channel);
242242

243+
tc_set_enable(tc_insts[self->tc_index], false);
244+
243245
reset_pin(self->left_channel->pin);
244246
self->left_channel = mp_const_none;
245247
#ifdef SAMD51

0 commit comments

Comments
 (0)