2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +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:
markusbloch 2016-03-05 17:16:36 +00:00
parent 752d8d1406
commit 9af1abd826

View File

@ -1024,7 +1024,7 @@ YAMAHA_AVR_HandleCmdQueue($)
# still request in queue, but not mentioned to be executed now # 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."; 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"); RemoveInternalTimer($hash, "YAMAHA_AVR_HandleCmdQueue");
InternalTimer(gettimeofday()+1,"YAMAHA_AVR_HandleCmdQueue", $hash, 0); InternalTimer(gettimeofday()+1,"YAMAHA_AVR_HandleCmdQueue", $hash);
return undef; return undef;
} }
@ -1979,15 +1979,15 @@ sub YAMAHA_AVR_ResetTimer($;$)
{ {
if(defined($interval)) 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") 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 else
{ {
InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 0); InternalTimer(gettimeofday()+$hash->{helper}{OFF_INTERVAL}, "YAMAHA_AVR_GetStatus", $hash);
} }
} }