Commit 31cb312c authored by devsaurus's avatar devsaurus
Browse files

fix insertion of rmt end marker

parent 1ab8f526
...@@ -113,7 +113,7 @@ static void IRAM_ATTR ws2812_isr(void *arg) ...@@ -113,7 +113,7 @@ static void IRAM_ATTR ws2812_isr(void *arg)
RMTMEM.chan[channel].data32[chain->tx_offset].val = 0; RMTMEM.chan[channel].data32[chain->tx_offset].val = 0;
} else { } else {
ws2812_fill_memory_encoded( channel, chain->data, chain->len, chain->tx_offset ); ws2812_fill_memory_encoded( channel, chain->data, chain->len, chain->tx_offset );
RMTMEM.chan[channel].data32[chain->tx_offset + chain->len].val = 0; RMTMEM.chan[channel].data32[chain->tx_offset + chain->len*8].val = 0;
chain->data += chain->len; chain->data += chain->len;
chain->len = 0; chain->len = 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment