mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
396d97eb66
commit
a3760ff771
@ -432,6 +432,11 @@ HUEDevice_SetParam($$@)
|
||||
|
||||
$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 = $Y;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user