Removed unused code in rotary encoder.
This commit is contained in:
parent
93bccb96b6
commit
f6b44e03ac
@ -161,7 +161,6 @@ private:
|
||||
uint8_t knownPalette = 0;
|
||||
|
||||
uint8_t currentCCT = 128;
|
||||
bool isRgbw = false;
|
||||
|
||||
byte presetHigh = 0;
|
||||
byte presetLow = 0;
|
||||
@ -282,12 +281,6 @@ public:
|
||||
pinMode(pinC, INPUT_PULLUP);
|
||||
loopTime = millis();
|
||||
|
||||
for (uint8_t s = 0; s < busses.getNumBusses(); s++) {
|
||||
Bus *bus = busses.getBus(s);
|
||||
if (!bus || bus->getLength()==0) break;
|
||||
isRgbw |= bus->isRgbw();
|
||||
}
|
||||
|
||||
currentCCT = (approximateKelvinFromRGB(RGBW32(col[0], col[1], col[2], col[3])) - 1900) >> 5;
|
||||
|
||||
if (!initDone) sortModesAndPalettes();
|
||||
|
Loading…
Reference in New Issue
Block a user