Skip to content

Commit 364226f

Browse files
authored
Merge pull request #100 from vm0824/fix-short-circuit-group-animate
broke out animate() logic to guarantee each item calls animate
2 parents b328c7f + d9b877d commit 364226f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_led_animation/group.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ def animate(self, show=True):
152152
member.show()
153153
return result
154154

155-
return any(item.animate(show) for item in self._members)
155+
ret = False
156+
for item in self._members:
157+
if item.animate(show):
158+
ret = True
159+
return ret
156160

157161
@property
158162
def color(self):

0 commit comments

Comments
 (0)