mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
OWX: OWX_Start+OWX_Kick: call InternalTimer with waitIfInitNotDone=0 to avoid hang on fhem-restart
git-svn-id: https://svn.fhem.de/fhem/trunk@5328 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
be3cb64bd6
commit
a5eb620027
@ -251,7 +251,7 @@ sub OWX_Start ($) {
|
||||
$hash->{PRESENT} = 1;
|
||||
readingsSingleUpdate($hash,"state","defined",1);
|
||||
#-- Intiate first alarm detection and eventually conversion in a minute or so
|
||||
InternalTimer(gettimeofday() + $hash->{interval}, "OWX_Kick", $hash,1);
|
||||
InternalTimer(gettimeofday() + $hash->{interval}, "OWX_Kick", $hash,0);
|
||||
$hash->{STATE} = "Active";
|
||||
return undef;
|
||||
}
|
||||
@ -902,7 +902,7 @@ sub OWX_Kick($) {
|
||||
my $ret;
|
||||
|
||||
#-- Call us in n seconds again.
|
||||
InternalTimer(gettimeofday()+ $hash->{interval}, "OWX_Kick", $hash,1);
|
||||
InternalTimer(gettimeofday()+ $hash->{interval}, "OWX_Kick", $hash,0);
|
||||
#-- During reset we see if an alarmed device is present.
|
||||
OWX_Reset($hash);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user