mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
45d8fce349
commit
3e024e1dd5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user