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
1 changed files with 0 additions and 6 deletions

View File

@ -51,12 +51,6 @@ bool MultiColorAdjustment::verifyAdjustments() const
Error(_log, "No adjustment set for %d", iLed);
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;
}