2
0
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:
mgehre 2013-03-11 22:30:05 +00:00
parent d156bb674d
commit 862f453a13

View File

@ -338,6 +338,7 @@ CUL_MAX_Send(@)
my $dhash = CUL_MAX_DeviceHash($dst);
$dhash->{READINGS}{msgcnt}{VAL} += 1;
$dhash->{READINGS}{msgcnt}{VAL} &= 0xFF;
$dhash->{READINGS}{msgcnt}{TIME} = TimeNow();
my $msgcnt = sprintf("%02x",$dhash->{READINGS}{msgcnt}{VAL});
my $packet = $msgcnt . $flags . $msgCmd2Id{$cmd} . $src . $dst . $groupId . $payload;