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
This commit is contained in:
markusbloch
2013-02-02 23:31:52 +00:00
parent 2a2a14fca3
commit 8acd54f33c

View File

@@ -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 <name> PRESENCE lan-bluetooth <bluetooth-device-address> <ip-address>[:port] [ <timeout> ]";
Log 2, $msg;
return $msg;