mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
srgbled_dma:Fix wrong timer init
This commit is contained in:
committed by
Lorenz Meier
parent
85d8e74609
commit
1375221c56
@@ -408,7 +408,7 @@ int neopixel_init(neopixel::NeoLEDData *led_data, int number_of_packages)
|
||||
|
||||
/* Enable the timer clock before we try to talk to it */
|
||||
|
||||
modifyreg32(S_RGB_LED_CLOCK_ENABLE, 0, S_RGB_LED_CLOCK);
|
||||
modifyreg32(S_RGB_LED_CLOCK_POWER_REG, 0, S_RGB_LED_CLOCK_ENABLE);
|
||||
|
||||
/* disable and configure the timer */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user