soc/cores/led: fix ws2812 with nled=1

This commit is contained in:
Andelf 2024-12-18 01:01:25 +08:00
parent fdd7c97ce5
commit f62ca50e95
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class WS2812(LiteXModule):
# Internal Signals.
led_count = Signal(max=nleds)
led_count = Signal(max=max(nleds, 2))
led_data = Signal(24)
xfer_start = Signal()
xfer_done = Signal()