Variable type-o
This commit is contained in:
parent
a855c3b99e
commit
72c6c68451
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ def pulse_generator(period: float, animation_object, dotstar_pwm=False):
|
||||||
last_pos = pos
|
last_pos = pos
|
||||||
if pos > half_period:
|
if pos > half_period:
|
||||||
pos = period - pos
|
pos = period - pos
|
||||||
if pos < half_period and pox > (half_period - breath):
|
if pos < half_period and pos > (half_period - breath):
|
||||||
intensity = animation_object.max_intensity
|
intensity = animation_object.max_intensity
|
||||||
elif pos > (period - breath):
|
elif pos > (period - breath):
|
||||||
intensity = animation_object.min_intensity
|
intensity = animation_object.min_intensity
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue