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:
parent
dfa16d169f
commit
f053069760
@ -904,8 +904,9 @@ sub decodeLinkLayer($$)
|
|||||||
$self->{datablocks}++ if $self->{datalen} % 18 != 0;
|
$self->{datablocks}++ if $self->{datalen} % 18 != 0;
|
||||||
|
|
||||||
|
|
||||||
($self->{lfield}, $self->{cfield}, $self->{mfield}, $self->{afield_id}, $self->{afield_ver}, $self->{afield_type},
|
($self->{lfield}, $self->{cfield}, $self->{mfield}) = unpack('CCv', $linklayer);
|
||||||
$self->{crc0}) = unpack('CCvLCCn', $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("lfield %d\n", $self->{lfield});
|
||||||
#printf("crc0 %x calc %x\n", $self->{crc0}, $self->checkCRC(substr($linklayer,0,10)));
|
#printf("crc0 %x calc %x\n", $self->{crc0}, $self->checkCRC(substr($linklayer,0,10)));
|
||||||
|
Loading…
Reference in New Issue
Block a user