mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
fixing missing right bracket; starting DevIo only if in right mode
git-svn-id: https://svn.fhem.de/fhem/trunk@2760 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cd4a584c60
commit
ffe65ae736
@ -131,7 +131,7 @@ PRESENCE_Define($$)
|
|||||||
|
|
||||||
$hash->{MODE} = $destination;
|
$hash->{MODE} = $destination;
|
||||||
|
|
||||||
delete $hash->{helper}{cachednr} if(defined($hash->{helper}{cachednr};
|
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});
|
||||||
@ -366,7 +366,7 @@ PRESENCE_Ready($)
|
|||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
|
|
||||||
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit");
|
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit") if($hash->{MODE} eq "lan-bluetooth");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user