bugfix constrain return value

This commit is contained in:
Harald Pichler 2016-09-27 17:03:15 +02:00
parent ee5cd039a1
commit 8302b1f762

View file

@ -135,9 +135,9 @@ void ChainableLED::setColorHSB(byte led, float hue, float saturation, float brig
{ {
float r, g, b; float r, g, b;
constrain(hue, 0.0, 1.0); hue=constrain(hue, 0.0, 1.0);
constrain(saturation, 0.0, 1.0); saturation=constrain(saturation, 0.0, 1.0);
constrain(brightness, 0.0, 1.0); brightness=constrain(brightness, 0.0, 1.0);
if(saturation == 0.0) if(saturation == 0.0)
{ {