fix insertion of rmt end marker

This commit is contained in:
devsaurus 2017-04-27 23:13:24 +02:00
parent 1ab8f526b0
commit 31cb312c72
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ static void IRAM_ATTR ws2812_isr(void *arg)
RMTMEM.chan[channel].data32[chain->tx_offset].val = 0;
} else {
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->len = 0;
}