From 58bc776678f81fed5cbb6684ca06ea511ccc8245 Mon Sep 17 00:00:00 2001 From: Taylor Yu Date: Sun, 22 Jan 2023 14:32:32 -0600 Subject: [PATCH] rainbowcomet: add missing arg initing base class In RainbowComet, the call to `super().__init__()` was missing the `background_color` argument. This caused strange effects when non-default arguments were passed. For example, setting `reverse=True` resulted a red comet with a tail length of 1, and setting `bounce=True` resulted in a reversed rainbow comet. Signed-off-by: Taylor Yu --- adafruit_led_animation/animation/rainbowcomet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_led_animation/animation/rainbowcomet.py b/adafruit_led_animation/animation/rainbowcomet.py index 1099307..e42d4be 100644 --- a/adafruit_led_animation/animation/rainbowcomet.py +++ b/adafruit_led_animation/animation/rainbowcomet.py @@ -65,7 +65,7 @@ def __init__( self._colorwheel_step = step self._colorwheel_offset = colorwheel_offset super().__init__( - pixel_object, speed, 0, tail_length, reverse, bounce, name, ring + pixel_object, speed, 0, 0, tail_length, reverse, bounce, name, ring ) def _set_color(self, color):