Skip to content

Commit ba57e7a

Browse files
committed
broke out animate() logic to guarantee each item calls animate without short circuit
1 parent fc16661 commit ba57e7a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

adafruit_led_animation/group.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ 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
160+
#return any(item.animate(show) for item in self._members)
156161

157162
@property
158163
def color(self):

0 commit comments

Comments
 (0)