mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
contrib/98_LW12.pm: added
git-svn-id: https://svn.fhem.de/fhem/trunk@7224 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0bb354a9b1
commit
dee9ab02ed
@ -136,9 +136,12 @@ sub LW12_Set( $@ ) {
|
|||||||
return( "$name: set needs at least one parameter" );
|
return( "$name: set needs at least one parameter" );
|
||||||
}
|
}
|
||||||
|
|
||||||
# if(!$hash->{LOCAL}) {
|
if(!$hash->{LOCAL}) {
|
||||||
# RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
# }
|
if ( ($attr{$name}{updateInterval}) != 0){
|
||||||
|
InternalTimer(gettimeofday()+ $attr{$name}{updateInterval} , "LW12_updateStatus", $hash, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my $cmdList = "" .
|
my $cmdList = "" .
|
||||||
"on off next:noArg prev:noArg animation mode speed run:noArg stop:noArg " .
|
"on off next:noArg prev:noArg animation mode speed run:noArg stop:noArg " .
|
||||||
@ -355,11 +358,6 @@ sub LW12_Set( $@ ) {
|
|||||||
return SetExtensions ($hash, $cmdList, $name, $cmd, @arg);
|
return SetExtensions ($hash, $cmdList, $name, $cmd, @arg);
|
||||||
}
|
}
|
||||||
LW12_UpdateRGB( $hash );
|
LW12_UpdateRGB( $hash );
|
||||||
# if(!$hash->{LOCAL}) {
|
|
||||||
# if ( ($attr{$name}{updateInterval}) != 0){
|
|
||||||
# InternalTimer(gettimeofday()+ $attr{$name}{updateInterval} , "LW12_updateStatus", $hash, 0);
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
return( undef );
|
return( undef );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user