Skip to content

Commit

Permalink
fix(pl18): ws2812 not working properly after v16 support (#5511)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli authored Sep 6, 2024
1 parent cb24926 commit 39ccd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/targets/common/arm/stm32/stm32_ws2812.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static void _init_timer(const stm32_pulse_timer_t* tim)
_led_set_dma_periph_addr(tim);

LL_DMA_SetMode(tim->DMAx, tim->DMA_Stream, LL_DMA_MODE_CIRCULAR);
LL_DMA_SetDataLength(tim->DMAx, tim->DMA_Stream, WS2821_DMA_BUFFER_LEN * pulse_inc);
LL_DMA_SetDataLength(tim->DMAx, tim->DMA_Stream, WS2821_DMA_BUFFER_LEN);
LL_DMA_SetMemoryAddress(tim->DMAx, tim->DMA_Stream, (uint32_t)_led_dma_buffer);

// we need to use a higher prio to avoid having
Expand Down

0 comments on commit 39ccd74

Please sign in to comment.