2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

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 45d8fce349
commit 3e024e1dd5

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