Update MultiColorAdjustment.cpp

backlight threshold and brightness are independend now - check not neccessary
This commit is contained in:
redPanther 2017-04-07 20:42:27 +02:00 committed by GitHub
parent 693c7c3450
commit cd62dcd351

View File

@ -51,12 +51,6 @@ bool MultiColorAdjustment::verifyAdjustments() const
Error(_log, "No adjustment set for %d", iLed); Error(_log, "No adjustment set for %d", iLed);
return false; return false;
} }
if (adjustment->_rgbTransform.getBrightness() <= adjustment->_rgbTransform.getBacklightThreshold() )
{
adjustment->_rgbTransform.setBacklightThreshold(0.0);
adjustment->_rgbTransform.setBrightness(0.5);
Warning(_log, "Adjustment for %d has invalid Brightness values, values set to default. (setBacklightThreshold is bigger then brightness)", iLed);
}
} }
return true; return true;
} }