Commit 32e9ac20 authored by vowstar's avatar vowstar Committed by Orgmar
Browse files

Fix PWM init bug, set all initial duty to 0.

parent 4b4f6000
......@@ -365,7 +365,7 @@ pwm_init(uint16 freq, uint16 *duty)
for (i = 0; i < PWM_CHANNEL; i++) {
// pwm_gpio |= (1 << pwm_out_io_num[i]);
pwm_gpio = 0;
pwm.duty[0] = 0;
pwm.duty[i] = 0;
}
pwm_set_freq(500, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment