Skip to content

Commit 78bbc39

Browse files
committed
🐛 Fix blink effect integer division
Part 2 of 2 fixing #126
1 parent 229c7a5 commit 78bbc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octoprint_ws281x_led_status/effects/standard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def blink(strip, queue, color, delay, brightness_manager, *args, **kwargs):
209209
brightness_manager=brightness_manager,
210210
wait=False,
211211
)
212-
for _ms in range(int(delay / 2)):
212+
for _ms in range(int(delay) // 2):
213213
if not q_poll_milli_sleep(2, queue):
214214
# We do it this way so we can check the q more often, as for blink
215215
# delay may be high. Otherwise the effect may end up blocking the

0 commit comments

Comments
 (0)