mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fix for define argument count (usage)
git-svn-id: https://svn.fhem.de/fhem/trunk@2396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cb172f6689
commit
02132089ab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user