Skip to content

Commit

Permalink
🐛 Fix blink effect integer division
Browse files Browse the repository at this point in the history
Part 2 of 2 fixing #126
  • Loading branch information
cp2004 committed Mar 18, 2021
1 parent 229c7a5 commit 78bbc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_ws281x_led_status/effects/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def blink(strip, queue, color, delay, brightness_manager, *args, **kwargs):
brightness_manager=brightness_manager,
wait=False,
)
for _ms in range(int(delay / 2)):
for _ms in range(int(delay) // 2):
if not q_poll_milli_sleep(2, queue):
# We do it this way so we can check the q more often, as for blink
# delay may be high. Otherwise the effect may end up blocking the
Expand Down

0 comments on commit 78bbc39

Please sign in to comment.