fix for define argument count (usage)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-12-31 12:01:11 +00:00
parent 7c8f953aa3
commit c15227d2b3

View File

@ -264,7 +264,7 @@ OWDevice_Define($$)
my ($hash, $def) = @_;
my @a = split("[ \t]+", $def);
return "Usage: define <name> OWDevice <address> [interval]" if($#a < 3 || $#a > 4);
return "Usage: define <name> OWDevice <address> [interval]" if($#a < 2|| $#a > 3);
my $name= $a[0];
AssignIoPort($hash);