mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +00:00
44_S7: Bugfixes
git-svn-id: https://svn.fhem.de/fhem/trunk@15539 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
10fee1dbf7
commit
559a8d8d1f
@ -352,11 +352,11 @@ sub S7_ARead_Parse($$) {
|
||||
my $mv = $1;
|
||||
my $last_value = $h->{".attreocr-threshold$reading"};
|
||||
if( !defined($last_value) ) {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
} elsif( abs($mv - $last_value) < $threshold ) {
|
||||
$eocr = 0;
|
||||
} else {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -494,11 +494,11 @@ sub S7_AWrite_Parse($$) {
|
||||
my $mv = $1;
|
||||
my $last_value = $h->{".attreocr-threshold$reading"};
|
||||
if( !defined($last_value) ) {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
} elsif( abs($mv - $last_value) < $threshold ) {
|
||||
$eocr = 0;
|
||||
} else {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -421,11 +421,11 @@ sub S7_DRead_Parse($$) {
|
||||
my $mv = $1;
|
||||
my $last_value = $h->{".attreocr-threshold$reading"};
|
||||
if( !defined($last_value) ) {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
} elsif( abs($mv - $last_value) < $threshold ) {
|
||||
$eocr = 0;
|
||||
} else {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -497,11 +497,11 @@ sub S7_DWrite_setABit($$) {
|
||||
my $mv = $1;
|
||||
my $last_value = $h->{".attreocr-threshold$reading"};
|
||||
if( !defined($last_value) ) {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
} elsif( abs($mv - $last_value) < $threshold ) {
|
||||
$eocr = 0;
|
||||
} else {
|
||||
$h->{".attreocr-threshold$reading"} = $mv;
|
||||
# $h->{".attreocr-threshold$reading"} = $mv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user