Skip to content

Commit 7aa1b4d

Browse files
authored
Merge pull request #29 from rhooper/pulse_rgbw_fix
Pulse RGBW strip fix
2 parents efa5831 + 2e6cfa5 commit 7aa1b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_led_animation/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def pulse_generator(period: float, animation_object, white=False, dotstar_pwm=Fa
391391
fill_color = (fill_color[0], fill_color[1], fill_color[2], intensity)
392392
yield fill_color
393393
continue
394-
if white:
394+
if white and len(fill_color) == 4:
395395
fill_color[3] = int(fill_color[3] * intensity)
396396
fill_color[0] = int(fill_color[0] * intensity)
397397
fill_color[1] = int(fill_color[1] * intensity)

0 commit comments

Comments
 (0)