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:
betateilchen 2014-12-16 05:58:57 +00:00
parent 0bb354a9b1
commit dee9ab02ed

View File

@ -136,9 +136,12 @@ sub LW12_Set( $@ ) {
return( "$name: set needs at least one parameter" );
}
# if(!$hash->{LOCAL}) {
# RemoveInternalTimer($hash);
# }
if(!$hash->{LOCAL}) {
RemoveInternalTimer($hash);
if ( ($attr{$name}{updateInterval}) != 0){
InternalTimer(gettimeofday()+ $attr{$name}{updateInterval} , "LW12_updateStatus", $hash, 0);
}
}
my $cmdList = "" .
"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);
}
LW12_UpdateRGB( $hash );
# if(!$hash->{LOCAL}) {
# if ( ($attr{$name}{updateInterval}) != 0){
# InternalTimer(gettimeofday()+ $attr{$name}{updateInterval} , "LW12_updateStatus", $hash, 0);
# }
# }
return( undef );
}