2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

31_Aurora.pm: fix for effects with more than 2 words in the name

git-svn-id: https://svn.fhem.de/fhem/trunk@17036 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-07-27 13:07:51 +00:00
parent f222e25bf4
commit 9637a8bafd

View File

@ -315,7 +315,7 @@ Aurora_dispatch($$$;$)
sub
Aurora_SetParam($$@)
{
my ($name, $obj, $cmd, $value, $value2) = @_;
my ($name, $obj, $cmd, $value, $value2, @a) = @_;
if( $cmd eq "color" ) {
$value = int(1000000/$value);
@ -435,6 +435,7 @@ Aurora_SetParam($$@)
} elsif( $cmd eq "effect" ) {
$obj->{'select'} = "$value";
$obj->{'select'} .= " $value2" if( $value2 );
$obj->{'select'} .= " ". join(" ", @a) if( @a );
} elsif( $cmd eq "transitiontime" ) {
$obj->{'transitiontime'} = 0+$value;
} elsif( $name && $cmd eq "delayedUpdate" ) {
@ -473,7 +474,7 @@ Aurora_Set($@)
return undef;
}
Aurora_SetParam($name, \%obj, $cmd, $value, $value2);
Aurora_SetParam($name, \%obj, $cmd, $value, $value2, @a);
}
#Log 1, Dumper \%obj;