soc/cores/led: fix ws2812 with nled=1
This commit is contained in:
parent
fdd7c97ce5
commit
f62ca50e95
|
@ -152,7 +152,7 @@ class WS2812(LiteXModule):
|
||||||
|
|
||||||
|
|
||||||
# Internal Signals.
|
# Internal Signals.
|
||||||
led_count = Signal(max=nleds)
|
led_count = Signal(max=max(nleds, 2))
|
||||||
led_data = Signal(24)
|
led_data = Signal(24)
|
||||||
xfer_start = Signal()
|
xfer_start = Signal()
|
||||||
xfer_done = Signal()
|
xfer_done = Signal()
|
||||||
|
|
Loading…
Reference in New Issue