2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00

CUL_HM:correct reg parser after new peer handling - 2nd attempt

git-svn-id: https://svn.fhem.de/fhem/trunk@17146 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2018-08-15 15:02:59 +00:00
parent dba493a605
commit f3cbcd77ed

View File

@ -7882,8 +7882,8 @@ sub CUL_HM_getRegFromStore($$$$@) {#read a register from backup data
if($addr<1 ||$addr>255);
}
return "invalid:no peer for this register" if(($reg->{p} eq "n" && $peerId ne 0)
||($reg->{p} eq "y" && $peerId eq 0));
return "invalid:no peer for this register" if(($reg->{p} eq "n" && hex($peerId) != 0)
||($reg->{p} eq "y" && hex($peerId) == 0));
my $dst = substr(CUL_HM_name2Id($name),0,6);
if(!$regLN){
$regLN = ($hash->{helper}{expert}{raw}?"":".")