Turn off timer on AudioOut deinit.

Thanks to @sommersoft for spotting the error.

Fixes #850
This commit is contained in:
Scott Shawcroft 2018-06-01 13:32:45 -07:00
parent 6479cb0806
commit bf1f0b3d11

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