From 6844654d39d16d7cebffb7ad05cc1547690c8d5f Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Sun, 12 Jul 2020 16:55:04 -0700 Subject: [PATCH] Clearly a copy paste error --- kmk/rgb.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/kmk/rgb.py b/kmk/rgb.py index 3d826e6..0a7ea1e 100644 --- a/kmk/rgb.py +++ b/kmk/rgb.py @@ -324,20 +324,27 @@ class RGB: Increases animation speed by 1 amount stopping at 10 :param step: ''' - if (self.animation_speed + 1) >= 10: + if (self.animation_speed + 1) > 10: self.animation_speed = 10 else: - self.val += 1 + self.animation_speed += 1 + if self._check_update(): + self._do_update() + + print(self.animation_speed) + return self def decrease_ani(self): ''' Decreases animation speed by 1 amount stopping at 0 :param step: ''' - if (self.val - 1) <= 0: - self.val = 0 + if (self.animation_speed - 1) <= 0: + self.animation_speed = 0 else: - self.val -= 1 + self.animation_speed -= 1 + if self._check_update(): + self._do_update() return self