fix a bug

This commit is contained in:
Roy Hooper 2020-05-13 20:03:53 -04:00
parent 4399fb490e
commit a81ee24dce

View file

@ -486,7 +486,7 @@ class Pulse(Animation):
Resets the animation.
"""
white = len(self.pixel_object[0]) > 3 and isinstance(
self.pixel_object[0][-1], float
self.pixel_object[0][-1], int
)
self._generator = adafruit_led_animation.helper.pulse_generator(
self._period, self, white