fixing "wrong syntax" message when no timeout is specified in mode lan-ping

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2639 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-02-02 23:31:52 +00:00
parent a81e75a4fc
commit 3a5d3da9e0

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;