We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bcdedb2 + 6ef0715 commit 0d782f8Copy full SHA for 0d782f8
adafruit_led_animation/animation/rainbowcomet.py
@@ -60,7 +60,7 @@ def __init__(
60
ring=False,
61
):
62
if step == 0:
63
- self._colorwheel_step = int(256 / tail_length)
+ self._colorwheel_step = max(256 // tail_length, 1)
64
else:
65
self._colorwheel_step = step
66
self._colorwheel_offset = colorwheel_offset
0 commit comments