31_HUEDevice.pm: clip xy values to 0..1. to avoid error messages (by ares). this is not sufficent to clip to possible color space.

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11095 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-03-20 09:56:05 +00:00
parent 396d97eb66
commit a3760ff771

View File

@ -432,6 +432,11 @@ HUEDevice_SetParam($$@)
$Y = 1 if( $Y > 1 ); $Y = 1 if( $Y > 1 );
$x = 0 if( $x < 0);
$x = 1 if( $x > 1);
$y = 0 if( $y < 0);
$y = 1 if( $y > 1);
my $bri = maxNum($r,$g,$b); my $bri = maxNum($r,$g,$b);
#my $bri = $Y; #my $bri = $Y;