Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
32e9ac20
Commit
32e9ac20
authored
May 01, 2015
by
vowstar
Committed by
Orgmar
May 01, 2015
Browse files
Fix PWM init bug, set all initial duty to 0.
parent
4b4f6000
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/driver/pwm.c
View file @
32e9ac20
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment