2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

correct KFN Sensor sequence- calculation

git-svn-id: https://svn.fhem.de/fhem/trunk@4361 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-12-11 17:56:43 +00:00
parent 21a7b8590d
commit e7dc434b9e

View File

@ -902,7 +902,9 @@ sub CUL_HM_Parse($$) {##############################
my $v = 128-$k_v2; # FIXME: calibrate
$v += 256 if(!($k_v3 & 1));
push @event, "rawValue:$v";
my $nextSeq = (ReadingsVal($name,"Sequence","") %15)+1;
my $nextSeq = ReadingsVal($name,"Sequence","");
$nextSeq =~ s/_.*//;
$nextSeq = ($nextSeq %15)+1;
push @event, "Sequence:$seq".($nextSeq ne $seq?"_seqMiss":"");
my $r2r = AttrVal($name, "rawToReadable", undef);