fix for dotstars
This commit is contained in:
parent
1ee581d609
commit
bad8defb8a
1 changed files with 1 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ class Pulse(Animation):
|
||||||
|
|
||||||
def _pulse_generator(self, period):
|
def _pulse_generator(self, period):
|
||||||
period = int(period * NANOS_PER_SECOND)
|
period = int(period * NANOS_PER_SECOND)
|
||||||
white = len(self.pixel_object[0]) > 3
|
white = len(self.pixel_object[0]) > 3 and type(self.pixel_object[0][-1]) is not float
|
||||||
half_period = period // 2
|
half_period = period // 2
|
||||||
|
|
||||||
last_update = monotonic_ns()
|
last_update = monotonic_ns()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue