Skip to content

Commit

Permalink
SPI DMA workaround
Browse files Browse the repository at this point in the history
Described in jgarff#499
  • Loading branch information
Deadolus committed May 17, 2022
1 parent 9be313f commit ce4ad55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ws2811.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,9 @@ ws2811_return_t ws2811_render(ws2811_t *ws2811)
{
uint32_t *wordptr = &((uint32_t *)pxl_raw)[wordpos]; // PWM & PCM
volatile uint8_t *byteptr = &pxl_raw[bytepos]; // SPI
if((bitpos == 7) && (l == 0)) {
break;
}

if (driver_mode == SPI)
{
Expand Down

0 comments on commit ce4ad55

Please sign in to comment.