mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-18 12:06:04 +00:00
MAX: fix conversion of addresses to lower case
git-svn-id: https://svn.fhem.de/fhem/trunk@3352 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f061497520
commit
78716ad076
@ -172,12 +172,13 @@ CUL_MAX_Set($@)
|
||||
|
||||
} elsif($setting ~~ ["fakeSC", "fakeWT"]) {
|
||||
return "Invalid number of arguments" if(@args == 0);
|
||||
my $dest = lc($args[0]);
|
||||
my $dest = $args[0];
|
||||
#$dest may be either a name or an address
|
||||
if(exists($defs{$dest})) {
|
||||
return "Destination is not a MAX device" if($defs{$dest}{TYPE} ne "MAX");
|
||||
$dest = $defs{$dest}{addr};
|
||||
} else {
|
||||
$dest = lc($dest); #address to lower-case
|
||||
return "No MAX device with address $dest" if(!exists($modules{MAX}{defptr}{$dest}));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user