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:
parent
21a7b8590d
commit
e7dc434b9e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user