10_ZWve.pm: ccCapability patch from krikan (Forum #54401)

git-svn-id: https://svn.fhem.de/fhem/trunk@11635 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-06-09 08:06:10 +00:00
parent a7ab445c01
commit 3218bd8b51

View File

@@ -986,13 +986,13 @@ ZWave_ccCapability($$)
{
my ($l,$h) = @_;
my @names = ("WarmWhite","ColdWhite","Red","Green",
"Blue","Amber","Cyan","Purpple","Indexed");
"Blue","Amber","Cyan","Purple","Indexed");
my $x = hex($l)+256*hex($h);
my @ret;
my @ret = "ccCapability:";
for(my $i=0; $i<int(@names); $i++) {
push @ret,$names[$i] if($x & (1<<$i));
}
return join(",",@ret);
return join(" ",@ret);
}
sub