2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

35_SWAP_0000002200000003.pm: fixed warning

git-svn-id: https://svn.fhem.de/fhem/trunk@11192 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-04-05 13:35:50 +00:00
parent fa82f4624c
commit 6d9e8edac4

View File

@ -267,7 +267,7 @@ SWAP_0000002200000003_Set($@)
if( $rgb =~ m/([\da-f]{2})([\da-f]{2})([\da-f]{2})/i ) {
my( $r, $g, $b ) = (hex($1)/255.0, hex($2)/255.0, hex($3)/255.0);
my ($h, $s, $v) = Color::rgb2hsv($r,$g,$b);
my $v = $arg/100;
$v = $arg/100;
($r,$g,$b) = Color::hsv2rgb($h,$s,$v);
$rgb = Color::rgb2hex( $r*255, $g*255, $b*255 );