fix color_strobe
This commit is contained in:
parent
92730bee9a
commit
b91e2d76b8
1 changed files with 2 additions and 2 deletions
|
@ -118,9 +118,9 @@ def color_strobe(
|
||||||
counter = phase
|
counter = phase
|
||||||
while True:
|
while True:
|
||||||
if counter < rate[0]:
|
if counter < rate[0]:
|
||||||
yield from flash_color
|
yield next(flash_color)
|
||||||
else:
|
else:
|
||||||
yield from color
|
yield next(color)
|
||||||
counter = (counter + 1) % rate[1]
|
counter = (counter + 1) % rate[1]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue