mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
moving cachednr deletion from ReadyFn to DefineFn as ReadyFn is not called in fritzbox mode
git-svn-id: https://svn.fhem.de/fhem/trunk@2758 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
47a172967d
commit
1fdccf139a
@ -129,10 +129,13 @@ PRESENCE_Define($$)
|
|||||||
if($destination eq "lan-ping" or $destination eq "local-bluetooth" or $destination eq "fritzbox")
|
if($destination eq "lan-ping" or $destination eq "local-bluetooth" or $destination eq "fritzbox")
|
||||||
{
|
{
|
||||||
|
|
||||||
$hash->{MODE} = $destination;
|
$hash->{MODE} = $destination;
|
||||||
|
|
||||||
|
delete $hash->{helper}{cachednr} if(defined($hash->{helper}{cachednr};
|
||||||
|
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 0) 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;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -362,7 +365,7 @@ PRESENCE_Ready($)
|
|||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
delete $hash->{helper}{cachednr}; ##MH clear cache on start
|
|
||||||
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit");
|
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user