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

Fixes issue #4273.
pull/4088/head
Damien George 2018-12-06 17:03:44 +11:00
rodzic 287b02d98a
commit 9c6c32cc51
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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