mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +00:00
don't wait for $init_done
git-svn-id: https://svn.fhem.de/fhem/trunk@2710 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
04a9a7ef43
commit
cdaf33575a
@ -93,7 +93,7 @@ YAMAHA_AVR_GetStatus($;$)
|
|||||||
|
|
||||||
if(not defined($zone))
|
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";
|
return "No Zone available";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ YAMAHA_AVR_GetStatus($;$)
|
|||||||
|
|
||||||
if(not defined($return) or $return eq "")
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ YAMAHA_AVR_GetStatus($;$)
|
|||||||
|
|
||||||
readingsEndUpdate($hash, 1);
|
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}";
|
Log GetLogLevel($name,4), "YAMAHA_AVR $name: $hash->{STATE}";
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ PRESENCE_Define($$)
|
|||||||
$hash->{MODE} = $destination;
|
$hash->{MODE} = $destination;
|
||||||
|
|
||||||
RemoveInternalTimer($hash);
|
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;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -519,7 +519,7 @@ PRESENCE_ProcessLocalScan($)
|
|||||||
|
|
||||||
#Schedule the next check withing $timeout
|
#Schedule the next check withing $timeout
|
||||||
RemoveInternalTimer($hash);
|
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;
|
1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user