Add an increment to tcc_refcount to allow deinits to work properly

This commit is contained in:
DavePutz 2020-05-21 11:08:26 -05:00 committed by GitHub
parent 1f40f9e04f
commit 2e05f628f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self,
mux_position = j;
// Claim channel.
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
tcc_refcount[timer->index]++;
}
}
}