mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
00_ZWDongle.pm: fix some warnings (Forum #99507)
git-svn-id: https://svn.fhem.de/fhem/trunk@19159 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2d1e442e36
commit
c4f593f4be
@ -435,6 +435,9 @@ ZWDongle_Get($@)
|
||||
ReadingsVal($name, "caps","") !~ m/\b$zw_func_id{$fb}\b/) {
|
||||
return "$cmd is unsupported by this controller";
|
||||
}
|
||||
my @ga = split("%", $gets{$cmd}, -1);
|
||||
my $nargs = int(@ga)-1;
|
||||
return "get $name $cmd needs $nargs arguments" if($nargs != int(@a));
|
||||
|
||||
if($cmd eq "raw") {
|
||||
if($a[0] =~ s/^42//) {
|
||||
@ -455,10 +458,6 @@ ZWDongle_Get($@)
|
||||
if(int(@a) != 1);
|
||||
}
|
||||
|
||||
my @ga = split("%", $gets{$cmd}, -1);
|
||||
my $nargs = int(@ga)-1;
|
||||
return "get $name $cmd needs $nargs arguments" if($nargs != int(@a));
|
||||
|
||||
return "No $cmd for dummies" if(IsDummy($name));
|
||||
|
||||
my $a0 = $a[0];
|
||||
|
Loading…
Reference in New Issue
Block a user