From 8acd54f33cdb695def4eb596989c8542c4138edd Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sat, 2 Feb 2013 23:31:52 +0000 Subject: [PATCH] fixing "wrong syntax" message when no timeout is specified in mode lan-ping git-svn-id: https://svn.fhem.de/fhem/trunk@2639 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 8831efc78..f58a27959 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -67,7 +67,7 @@ PRESENCE_Define($$) Log 2, $msg; return $msg; } - elsif(not (@a == 5 or @a == 6)) { + elsif($a[2] eq "lan-bluetooth" and not (@a == 5 or @a == 6)) { my $msg = "wrong syntax: define PRESENCE lan-bluetooth [:port] [ ]"; Log 2, $msg; return $msg;