From e35d8e0c87954dc9beaa6c79bdbb76ca41cdc5fe 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://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2760 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_PRESENCE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 4b76dc350..30e11f0e0 100755 --- a/FHEM/73_PRESENCE.pm +++ b/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"); }