fix color_strobe

This commit is contained in:
Patrick Moessler 2023-02-24 18:58:37 +01:00
parent 92730bee9a
commit b91e2d76b8

View file

@ -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]