drivers: pwm: stm32: fix PWM channel disabling
Move period and pulse computation to right before
the channel enable code.
That fixes the inability to disable the channel by
providing the period of 0.
Signed-off-by:
Georgij Cernysiov <geo.cgv@gmail.com>
Loading
Please sign in to comment