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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user