esp32/machine_pwm: On deinit stop routing PWM signal to the pin.

Fixes issue #4273.
This commit is contained in:
Damien George 2018-12-06 17:03:44 +11:00
parent 287b02d98a
commit 9c6c32cc51

View File

@ -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;
}