Merge pull request #889 from tannewt/audioio_timers_in_use

Turn off timer on AudioOut deinit.
This commit is contained in:
Dan Halbert 2018-06-01 18:03:29 -04:00 committed by GitHub
commit ae31c4ac18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,8 @@ void common_hal_audioio_audioout_deinit(audioio_audioout_obj_t* self) {
disable_event_channel(self->tc_to_dac_event_channel);
tc_set_enable(tc_insts[self->tc_index], false);
reset_pin(self->left_channel->pin);
self->left_channel = mp_const_none;
#ifdef SAMD51