From 1375221c566564c6b33bc39c23a8c3d781795f3b Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 29 Jan 2021 12:04:10 -0800 Subject: [PATCH] srgbled_dma:Fix wrong timer init --- .../nuttx/src/px4/stm/stm32_common/srgbled_dma/srgbled_dma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/src/px4/stm/stm32_common/srgbled_dma/srgbled_dma.cpp b/platforms/nuttx/src/px4/stm/stm32_common/srgbled_dma/srgbled_dma.cpp index c0b2714c27..3d89d829a5 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/srgbled_dma/srgbled_dma.cpp +++ b/platforms/nuttx/src/px4/stm/stm32_common/srgbled_dma/srgbled_dma.cpp @@ -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 */