mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
correct KFN Sensor sequence- calculation
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4361 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e4806f13fd
commit
dadbdb00d5
@ -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…
x
Reference in New Issue
Block a user