From ce4ad55a5af4d55e6813094392ebd2d52319a0ae Mon Sep 17 00:00:00 2001 From: Simon Egli <4662005+Deadolus@users.noreply.github.com> Date: Tue, 17 May 2022 18:07:35 +0200 Subject: [PATCH] SPI DMA workaround Described in https://github.com/jgarff/rpi_ws281x/issues/499 --- ws2811.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ws2811.c b/ws2811.c index 6482796..598217b 100644 --- a/ws2811.c +++ b/ws2811.c @@ -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) {