Removed unused code in rotary encoder.

This commit is contained in:
Blaz Kristan 2022-02-10 13:09:22 +01:00
parent 93bccb96b6
commit f6b44e03ac

View File

@ -161,7 +161,6 @@ private:
uint8_t knownPalette = 0; uint8_t knownPalette = 0;
uint8_t currentCCT = 128; uint8_t currentCCT = 128;
bool isRgbw = false;
byte presetHigh = 0; byte presetHigh = 0;
byte presetLow = 0; byte presetLow = 0;
@ -282,12 +281,6 @@ public:
pinMode(pinC, INPUT_PULLUP); pinMode(pinC, INPUT_PULLUP);
loopTime = millis(); 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; currentCCT = (approximateKelvinFromRGB(RGBW32(col[0], col[1], col[2], col[3])) - 1900) >> 5;
if (!initDone) sortModesAndPalettes(); if (!initDone) sortModesAndPalettes();