Skip to content

Commit

Permalink
Merge pull request #100 from vm0824/fix-short-circuit-group-animate
Browse files Browse the repository at this point in the history
broke out animate() logic to guarantee each item calls animate
  • Loading branch information
dhalbert authored Aug 17, 2022
2 parents b328c7f + d9b877d commit 364226f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adafruit_led_animation/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ def animate(self, show=True):
member.show()
return result

return any(item.animate(show) for item in self._members)
ret = False
for item in self._members:
if item.animate(show):
ret = True
return ret

@property
def color(self):
Expand Down

0 comments on commit 364226f

Please sign in to comment.