Fix ColorCycleColorStripStream not auto-sizing to device LED count
configure() was only called for Static and Gradient streams, leaving ColorCycle at its default led_count=1 — all other LEDs sent as black. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -115,12 +115,13 @@ class WledTargetProcessor(TargetProcessor):
|
|||||||
self._resolved_display_index = stream.display_index
|
self._resolved_display_index = stream.display_index
|
||||||
self._resolved_target_fps = stream.target_fps
|
self._resolved_target_fps = stream.target_fps
|
||||||
|
|
||||||
# For auto-sized static/gradient streams (led_count == 0), size to device LED count
|
# For auto-sized static/gradient/color_cycle streams (led_count == 0), size to device LED count
|
||||||
from wled_controller.core.processing.color_strip_stream import (
|
from wled_controller.core.processing.color_strip_stream import (
|
||||||
|
ColorCycleColorStripStream,
|
||||||
GradientColorStripStream,
|
GradientColorStripStream,
|
||||||
StaticColorStripStream,
|
StaticColorStripStream,
|
||||||
)
|
)
|
||||||
if isinstance(stream, (StaticColorStripStream, GradientColorStripStream)) and device_info.led_count > 0:
|
if isinstance(stream, (StaticColorStripStream, GradientColorStripStream, ColorCycleColorStripStream)) and device_info.led_count > 0:
|
||||||
stream.configure(device_info.led_count)
|
stream.configure(device_info.led_count)
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user