mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 17:36:39 +00:00
10_KNX.pm: fixed get-mechanism
git-svn-id: https://svn.fhem.de/fhem/trunk@12686 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6fac87ebea
commit
dda6bad0c2
@ -21,6 +21,7 @@
|
||||
# ABU 20161126 added summary
|
||||
# ABU 20161126 fixed doku
|
||||
# ABU 20161127 adjusted dpt-16-sending, added dpt16.001
|
||||
# ABU 20161129 fixed get-mechanism
|
||||
|
||||
package main;
|
||||
|
||||
@ -319,14 +320,13 @@ KNX_Get($@) {
|
||||
Log3 ($name, 5, "enter get $name: hash: $hash, attributes: $tempStr");
|
||||
|
||||
#FHEM asks with a ? at startup - no action, no log
|
||||
#return "" if($a[1] && $a[1] eq "?");
|
||||
return "Unknown argument ?, only a group-adress is allowed" if($a[1] && $a[1] eq "?");
|
||||
return "Unknown argument ?, choose one of -" if(defined($a[1]) and ($a[1] =~ m/\?/));
|
||||
|
||||
splice(@a, 1, 1) if (defined ($a[1]) and ($a[1] =~ m/-/));
|
||||
my $na = int(@a);
|
||||
|
||||
#not more then 2 arguments allowed
|
||||
return "too much arguments. Maximum two arguments allowed" if($na>2);
|
||||
return "too much arguments. Only one argument allowed (group-address)." if($na>2);
|
||||
|
||||
# the command can be send to any of the defined groups indexed starting by 1
|
||||
# optional last argument starting with g indicates the group
|
||||
|
Loading…
x
Reference in New Issue
Block a user