Merged in antmerlino/nuttx/multichan_rgbled_fix (pull request #641)
rgbled: Fixes led issues caused by uninitialized memory with CONFIG_RGBLED_MULTICHAN. The uninitialized pwm_info_s struct caused a rogue channel to be started causing errros in the pwm driver Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
4e8e726ca3
commit
addf7f1a4c
1 changed files with 2 additions and 0 deletions
|
|
@ -389,6 +389,8 @@ static ssize_t rgbled_write(FAR struct file *filep, FAR const char *buffer,
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_PWM_MULTICHAN
|
||||
|
||||
memset(&pwm, 0, sizeof(struct pwm_info_s));
|
||||
pwm.frequency = 100;
|
||||
|
||||
i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue