mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 06:48:43 +00:00
YAMAHA_AVR: remove $waitIfInitNotDone from InternalTimer() as it is not neccessary anymore
git-svn-id: https://svn.fhem.de/fhem/trunk@11001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
752d8d1406
commit
9af1abd826
@ -1024,7 +1024,7 @@ YAMAHA_AVR_HandleCmdQueue($)
|
||||
# still request in queue, but not mentioned to be executed now
|
||||
Log3 $name, 5, "YAMAHA_AVR ($name) - still requests in queue, but no command shall be executed at the moment. Retry in 1 second.";
|
||||
RemoveInternalTimer($hash, "YAMAHA_AVR_HandleCmdQueue");
|
||||
InternalTimer(gettimeofday()+1,"YAMAHA_AVR_HandleCmdQueue", $hash, 0);
|
||||
InternalTimer(gettimeofday()+1,"YAMAHA_AVR_HandleCmdQueue", $hash);
|
||||
return undef;
|
||||
}
|
||||
|
||||
@ -1979,15 +1979,15 @@ sub YAMAHA_AVR_ResetTimer($;$)
|
||||
{
|
||||
if(defined($interval))
|
||||
{
|
||||
InternalTimer(gettimeofday()+$interval, "YAMAHA_AVR_GetStatus", $hash, 0);
|
||||
InternalTimer(gettimeofday()+$interval, "YAMAHA_AVR_GetStatus", $hash);
|
||||
}
|
||||
elsif(ReadingsVal($name, "presence", "absent") eq "present" and ReadingsVal($name, "power", "off") eq "on")
|
||||
{
|
||||
InternalTimer(gettimeofday()+$hash->{helper}{ON_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0);
|
||||
InternalTimer(gettimeofday()+$hash->{helper}{ON_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash);
|
||||
}
|
||||
else
|
||||
{
|
||||
InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0);
|
||||
InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user