Skip to content
Snippets Groups Projects
Commit 3bd7770e authored by cnlohr's avatar cnlohr
Browse files

Swap WS2812B interrupt events per #207 - I tested it and it seems fine.

Let me know if this causes anyone issues.
parent 2d53568b
No related branches found
No related tags found
No related merge requests found
......@@ -139,12 +139,12 @@ void DMA1_Channel3_IRQHandler( void )
// Clear all possible flags.
DMA1->INTFCR = DMA1_IT_GL3;
if( intfr & DMA1_IT_TC3 )
if( intfr & DMA1_IT_HT3 )
{
// Halfwaay (Fill in first part)
WS2812FillBuffSec( WS2812dmabuff, DMA_BUFFER_LEN / 2, 1 );
}
if( intfr & DMA1_IT_HT3 )
if( intfr & DMA1_IT_TC3 )
{
// Complete (Fill in second part)
WS2812FillBuffSec( WS2812dmabuff + DMA_BUFFER_LEN / 2, DMA_BUFFER_LEN / 2, 0 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment