2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

WMBus.pm, fix incorrect decoding of IdentNumber

git-svn-id: https://svn.fhem.de/fhem/trunk@6404 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
kaihs 2014-08-13 20:22:29 +00:00
parent dfa16d169f
commit f053069760

View File

@ -904,8 +904,9 @@ sub decodeLinkLayer($$)
$self->{datablocks}++ if $self->{datalen} % 18 != 0;
($self->{lfield}, $self->{cfield}, $self->{mfield}, $self->{afield_id}, $self->{afield_ver}, $self->{afield_type},
$self->{crc0}) = unpack('CCvLCCn', $linklayer);
($self->{lfield}, $self->{cfield}, $self->{mfield}) = unpack('CCv', $linklayer);
$self->{afield_id} = $self->decodeBCD(8,substr($linklayer,4,4));
($self->{afield_ver}, $self->{afield_type}, $self->{crc0}) = unpack('CCn', substr($linklayer,8,4));
#printf("lfield %d\n", $self->{lfield});
#printf("crc0 %x calc %x\n", $self->{crc0}, $self->checkCRC(substr($linklayer,0,10)));