mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fix WS2812 LED initialisation.
The timer was not being initialised correctly, it only worked by accident due to timer configuration of other timer channels. This explained why TIM3 didn't work in the mapping exclusion for the CC3D and why for the LEDs to work correctly TIM2 had to be specified so that TIM3 was actually accidentally initialised still.
This commit is contained in:
parent
4e284b3e41
commit
c9b5334f16
3 changed files with 4 additions and 1 deletions
|
@ -272,7 +272,7 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
#endif
|
||||
|
||||
#if defined(CC3D)
|
||||
#define LED_STRIP_TIMER TIM2
|
||||
#define LED_STRIP_TIMER TIM3
|
||||
#endif
|
||||
|
||||
#if defined(STM32F303xC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue