mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
CUL_MAX: add TIME to msgcnt
git-svn-id: https://svn.fhem.de/fhem/trunk@2899 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d156bb674d
commit
862f453a13
@ -338,6 +338,7 @@ CUL_MAX_Send(@)
|
|||||||
my $dhash = CUL_MAX_DeviceHash($dst);
|
my $dhash = CUL_MAX_DeviceHash($dst);
|
||||||
$dhash->{READINGS}{msgcnt}{VAL} += 1;
|
$dhash->{READINGS}{msgcnt}{VAL} += 1;
|
||||||
$dhash->{READINGS}{msgcnt}{VAL} &= 0xFF;
|
$dhash->{READINGS}{msgcnt}{VAL} &= 0xFF;
|
||||||
|
$dhash->{READINGS}{msgcnt}{TIME} = TimeNow();
|
||||||
my $msgcnt = sprintf("%02x",$dhash->{READINGS}{msgcnt}{VAL});
|
my $msgcnt = sprintf("%02x",$dhash->{READINGS}{msgcnt}{VAL});
|
||||||
|
|
||||||
my $packet = $msgcnt . $flags . $msgCmd2Id{$cmd} . $src . $dst . $groupId . $payload;
|
my $packet = $msgcnt . $flags . $msgCmd2Id{$cmd} . $src . $dst . $groupId . $payload;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user