mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
PROPLANTA: bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cd45781f71
commit
fea36301e8
@ -301,6 +301,8 @@ sub PROPLANTA_Define($$)
|
||||
}
|
||||
|
||||
$hash->{STATE} = "Initializing";
|
||||
$hash->{LOCAL} = 0;
|
||||
$hash->{INTERVAL} = 3600;
|
||||
|
||||
RemoveInternalTimer($hash);
|
||||
InternalTimer( gettimeofday() + 12, "PROPLANTA_Start", $hash, 0 );
|
||||
@ -393,13 +395,13 @@ sub PROPLANTA_Start($)
|
||||
|
||||
return unless (defined($hash->{NAME}));
|
||||
|
||||
$hash->{Interval} = AttrVal( $name, "Interval", 3600 );
|
||||
$hash->{INTERVAL} = AttrVal( $name, "Interval", $hash->{INTERVAL} );
|
||||
|
||||
if(!$hash->{LOCAL} && $hash->{INTERVAL} > 0) {
|
||||
# setup timer
|
||||
RemoveInternalTimer( $hash );
|
||||
InternalTimer(
|
||||
gettimeofday() + $hash->{Interval},
|
||||
gettimeofday() + $hash->{INTERVAL},
|
||||
"PROPLANTA_Start",
|
||||
$name,
|
||||
1 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user