10_ZWave.pm: CRC16 encapsulation fix

git-svn-id: https://svn.fhem.de/fhem/trunk@13591 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2017-03-03 19:09:53 +00:00
parent 88d8f9821c
commit db2a89a9cd

View File

@@ -4181,10 +4181,10 @@ ZWave_processSendStack($$;$)
$ss->[0] =~ m/^([^:]*?):(.*)$/;
my ($type, $msg) = ($1, $2);
$msg = ZWave_addCRC16($msg) if($hash->{useCRC16});
my $iomsg = ZWave_addCRC16($msg) if($hash->{useCRC16});
IOWrite($hash,
$hash->{homeId}.($hash->{route}?",".$hash->{route}:""),
"00$msg");
"00$iomsg");
$ss->[0] = "sent$type:$msg";
$hash->{lastMsgSent} = $now;