mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +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
|
my $v = 128-$k_v2; # FIXME: calibrate
|
||||||
$v += 256 if(!($k_v3 & 1));
|
$v += 256 if(!($k_v3 & 1));
|
||||||
push @event, "rawValue:$v";
|
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":"");
|
push @event, "Sequence:$seq".($nextSeq ne $seq?"_seqMiss":"");
|
||||||
|
|
||||||
my $r2r = AttrVal($name, "rawToReadable", undef);
|
my $r2r = AttrVal($name, "rawToReadable", undef);
|
||||||
|
Loading…
Reference in New Issue
Block a user