esp32/machine_pwm: On deinit stop routing PWM signal to the pin.
Fixes issue #4273.
This commit is contained in:
parent
287b02d98a
commit
9c6c32cc51
@ -234,6 +234,7 @@ STATIC mp_obj_t esp32_pwm_deinit(mp_obj_t self_in) {
|
||||
ledc_stop(PWMODE, chan, 0);
|
||||
self->active = 0;
|
||||
self->channel = -1;
|
||||
gpio_matrix_out(self->pin, SIG_GPIO_OUT_IDX, false, false);
|
||||
}
|
||||
return mp_const_none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user