2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +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:
markusbloch 2013-02-18 19:58:06 +00:00
parent cd4a584c60
commit ffe65ae736

View File

@ -131,7 +131,7 @@ PRESENCE_Define($$)
$hash->{MODE} = $destination;
delete $hash->{helper}{cachednr} if(defined($hash->{helper}{cachednr};
delete $hash->{helper}{cachednr} if(defined($hash->{helper}{cachednr}));
RemoveInternalTimer($hash);
InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 0) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED});
@ -366,7 +366,7 @@ PRESENCE_Ready($)
my ($hash) = @_;
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit");
return DevIo_OpenDev($hash, 1, "PRESENCE_DoInit") if($hash->{MODE} eq "lan-bluetooth");
}