1
0
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:
markusbloch 2013-02-02 23:31:52 +00:00
parent 236f2481ae
commit 7a19fd2e06

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;