From dee9ab02edaafc5f37dd2f32048585be95ab373c Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Tue, 16 Dec 2014 05:58:57 +0000 Subject: [PATCH] contrib/98_LW12.pm: added git-svn-id: https://svn.fhem.de/fhem/trunk@7224 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_LW12.pm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fhem/contrib/98_LW12.pm b/fhem/contrib/98_LW12.pm index bd1795cb9..5053fa560 100644 --- a/fhem/contrib/98_LW12.pm +++ b/fhem/contrib/98_LW12.pm @@ -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 ); }