Fix calibration side test not applying LED offset rotation
The test mode pixel array was built from segment positions but never rotated by the configured offset, causing LEDs to light up on the wrong side. Apply the same offset rotation used in the normal rendering pipeline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -506,6 +506,12 @@ class ProcessorManager:
|
||||
pixels[i] = color
|
||||
break
|
||||
|
||||
# Apply offset rotation (same as Phase 2 in PixelMapper.map_border_to_leds)
|
||||
total_leds = ds.calibration.get_total_leds()
|
||||
offset = ds.calibration.offset % total_leds if total_leds > 0 else 0
|
||||
if offset > 0:
|
||||
pixels = pixels[-offset:] + pixels[:-offset]
|
||||
|
||||
try:
|
||||
active_client = self._find_active_led_client(device_id)
|
||||
if active_client:
|
||||
|
||||
Reference in New Issue
Block a user