2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

CUL_HM:remove : from Reading names

git-svn-id: https://svn.fhem.de/fhem/trunk@10216 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-12-20 18:16:59 +00:00
parent c173108821
commit c609f5b0fd

View File

@ -8167,7 +8167,7 @@ sub CUL_HM_reglUsed($) {# provide data for HMinfo
my $mId = CUL_HM_getMId($hash); my $mId = CUL_HM_getMId($hash);
return undef if (!$mId || !$culHmModel->{$mId}); return undef if (!$mId || !$culHmModel->{$mId});
if ($hash->{helper}{role}{dev}){ if ($hash->{helper}{role}{dev}){
push @lsNo,"0:"; push @lsNo,"0.";
} }
if ($hash->{helper}{role}{chn}){ if ($hash->{helper}{role}{chn}){
foreach my $ls (split ",",$culHmModel->{$mId}{lst}){ foreach my $ls (split ",",$culHmModel->{$mId}{lst}){
@ -8175,12 +8175,12 @@ sub CUL_HM_reglUsed($) {# provide data for HMinfo
if ($l ne "p"){# ignore peer-only entries if ($l ne "p"){# ignore peer-only entries
if ($c){ if ($c){
my $chNo = hex($chn); my $chNo = hex($chn);
if ($c =~ m/($chNo)p/){push @lsNo,"$l:$_" foreach (@pNames);} if ($c =~ m/($chNo)p/){push @lsNo,"$l.$_" foreach (@pNames);}
elsif($c =~ m/$chNo/ ){push @lsNo,"$l:";} elsif($c =~ m/$chNo/ ){push @lsNo,"$l.";}
} }
else{ else{
if ($l == 3 || $l == 4){push @lsNo,"$l:$_" foreach (@pNames); if ($l == 3 || $l == 4){push @lsNo,"$l.$_" foreach (@pNames);
}else{ push @lsNo,"$l:" ;} }else{ push @lsNo,"$l." ;}
} }
} }
} }