Update ws2812_i2s.c

This commit is contained in:
CNLohr 2018-07-22 19:35:04 -04:00 committed by GitHub
parent 8dc3110c56
commit bcc3347893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ static unsigned int i2sBlock[WS_BLOCKSIZE/4];
//DMA underrun counter
#ifdef USE_2812_INTERRUPTS
#if USE_2812_INTERRUPTS
volatile uint8_t ws2812_dma_complete;
@ -496,7 +496,7 @@ void ws2812_push( uint8_t * buffer, uint16_t buffersize )
}
#endif
#ifdef USE_2812_INTERRUPTS
#if USE_2812_INTERRUPTS
uint16_t leftover = buffersize & 0x1f;
if( leftover ) leftover = 32 - leftover;