From c97c6775b66ef766696e47b0013df6ee1508a033 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Mon, 18 Feb 2013 19:58:06 +0000 Subject: [PATCH] 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 --- fhem/FHEM/73_PRESENCE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 4b76dc350..30e11f0e0 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -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"); }