We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ee54a commit 8e4e84cCopy full SHA for 8e4e84c
ports/espressif/common-hal/pwmio/PWMOut.c
@@ -170,7 +170,7 @@ void common_hal_pwmio_pwmout_reset_ok(pwmio_pwmout_obj_t *self) {
170
// Otherwise, we clear never_reset for the timer as well.
171
bool other_never_reset = false;
172
for (size_t i = 0; i < LEDC_CHANNEL_MAX; i++) {
173
- if (i != self->tim_handle.timer_num &&
+ if (i != self->chan_handle.channel &&
174
reserved_channels[i] == self->tim_handle.timer_num &&
175
never_reset_chan[i]) {
176
other_never_reset = true;
0 commit comments