mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fixing "wrong syntax" message when no timeout is specified in mode lan-ping
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2639 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
236f2481ae
commit
7a19fd2e06
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user