OWX: OWX_Start+OWX_Kick: call InternalTimer with waitIfInitNotDone=0 to avoid hang on fhem-restart

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5328 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess
2014-03-26 14:16:35 +00:00
parent 07636dd383
commit aa39a109a5

View File

@@ -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);