mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_Hyperion: fix InternalTimer
git-svn-id: https://svn.fhem.de/fhem/trunk@12701 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c8a9f2e107
commit
f3acafcc1a
@ -118,7 +118,7 @@ sub Hyperion_Define($$)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
InternalTimer(gettimeofday() + $interval,"Hyperion_GetUpdate",$hash,0);
|
InternalTimer(gettimeofday() + $interval,"Hyperion_GetUpdate",$hash);
|
||||||
}
|
}
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
@ -463,7 +463,7 @@ sub Hyperion_GetUpdate(@)
|
|||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
if ($hash->{INTERVAL})
|
if ($hash->{INTERVAL})
|
||||||
{
|
{
|
||||||
InternalTimer(gettimeofday() + $hash->{INTERVAL},"Hyperion_GetUpdate",$hash,1);
|
InternalTimer(gettimeofday() + $hash->{INTERVAL},"Hyperion_GetUpdate",$hash);
|
||||||
}
|
}
|
||||||
return undef if (IsDisabled($hash));
|
return undef if (IsDisabled($hash));
|
||||||
Hyperion_Call($hash);
|
Hyperion_Call($hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user