From a120c63e961e7d584d8f682b37b9b897af5fcb4f Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Sat, 5 Aug 2017 16:56:53 -0700 Subject: [PATCH] Avoid duplicated effects in LEDMode rotation Before this commit, any SolidColor effects would appear in the LEDMode rotation twice (e.g. in the stock Model01-Firmware). They would be added to the rotation both on construction and in Kaleidoscope.use(). This removes the duplication, and makes SolidColor effects behave similarly to other effects. --- src/Kaleidoscope-LEDEffect-SolidColor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Kaleidoscope-LEDEffect-SolidColor.cpp b/src/Kaleidoscope-LEDEffect-SolidColor.cpp index 7549fb8a..9dc62dc7 100644 --- a/src/Kaleidoscope-LEDEffect-SolidColor.cpp +++ b/src/Kaleidoscope-LEDEffect-SolidColor.cpp @@ -4,7 +4,6 @@ LEDSolidColor::LEDSolidColor(uint8_t r, uint8_t g, uint8_t b) { this->r = r; this->g = g; this->b = b; - LEDControl.mode_add(this); } void