mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
WMBus: fix for bug causing 'encryption failed' on unencrypted messages
git-svn-id: https://svn.fhem.de/fhem/trunk@19247 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b0d05579f
commit
eab7bf4aca
@ -2008,8 +2008,7 @@ sub decodeApplicationLayer($) {
|
|||||||
$self->{encryptionMode} = $encryptionModes{$self->{cw_parts}{mode}};
|
$self->{encryptionMode} = $encryptionModes{$self->{cw_parts}{mode}};
|
||||||
if ($self->{cw_parts}{mode} == 0) {
|
if ($self->{cw_parts}{mode} == 0) {
|
||||||
# no encryption
|
# no encryption
|
||||||
if (!defined $self->{isEncrypted}) {
|
if (!$self->{isEncrypted}) {
|
||||||
$self->{isEncrypted} = 0;
|
|
||||||
$self->{decrypted} = 1;
|
$self->{decrypted} = 1;
|
||||||
}
|
}
|
||||||
$payload = substr($applicationlayer, $offset);
|
$payload = substr($applicationlayer, $offset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user