From cdfa4de13b9cccaf31b33e47124fcca441481251 Mon Sep 17 00:00:00 2001 From: vm0824 Date: Tue, 9 Aug 2022 09:21:34 -0400 Subject: [PATCH] update any() to all() to prevent short circuiting address issue 98 https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation/issues/98 --- adafruit_led_animation/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_led_animation/group.py b/adafruit_led_animation/group.py index ba1111f..16a0f41 100644 --- a/adafruit_led_animation/group.py +++ b/adafruit_led_animation/group.py @@ -152,7 +152,7 @@ def animate(self, show=True): member.show() return result - return any(item.animate(show) for item in self._members) + return all(item.animate(show) for item in self._members) @property def color(self):