mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
4867ab6d78
commit
8fe06546ff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user