From cdaf33575a143b5b3c04bdd260b8c911932a832f Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Tue, 12 Feb 2013 17:40:35 +0000 Subject: [PATCH] don't wait for $init_done git-svn-id: https://svn.fhem.de/fhem/trunk@2710 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/71_YAMAHA_AVR.pm | 6 +++--- fhem/FHEM/73_PRESENCE.pm | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 6087d0be0..b86299c03 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -93,7 +93,7 @@ YAMAHA_AVR_GetStatus($;$) if(not defined($zone)) { - InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 1) unless($local == 1); + InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0) unless($local == 1); return "No Zone available"; } @@ -103,7 +103,7 @@ YAMAHA_AVR_GetStatus($;$) if(not defined($return) or $return eq "") { - InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 1) unless($local == 1); + InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0) unless($local == 1); return; } @@ -150,7 +150,7 @@ YAMAHA_AVR_GetStatus($;$) readingsEndUpdate($hash, 1); - InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 1) unless($local == 1); + InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0) unless($local == 1); Log GetLogLevel($name,4), "YAMAHA_AVR $name: $hash->{STATE}"; diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 8c8e637bd..bb6e9f729 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -130,7 +130,7 @@ PRESENCE_Define($$) $hash->{MODE} = $destination; RemoveInternalTimer($hash); - InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 1) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED}); + InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 0) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED}); return; } @@ -519,7 +519,7 @@ PRESENCE_ProcessLocalScan($) #Schedule the next check withing $timeout RemoveInternalTimer($hash); - InternalTimer(gettimeofday()+$hash->{TIMEOUT}, "PRESENCE_StartLocalScan", $hash, 1) unless($hash->{helper}{DISABLED}); + InternalTimer(gettimeofday()+$hash->{TIMEOUT}, "PRESENCE_StartLocalScan", $hash, 0) unless($hash->{helper}{DISABLED}); } 1;