mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
93_FHEM2FHEM.pm: loopThreshold detail fixes (Forum #122300)
git-svn-id: https://svn.fhem.de/fhem/trunk@24876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a0f0db2695
commit
71d1179e0c
@ -191,8 +191,8 @@ FHEM2FHEM_Read($)
|
||||
if($msg =~ m/^([^:]*): (.*)$/) {
|
||||
$reading = $1; $msg = $2;
|
||||
}
|
||||
my $age = ($threshold ? ReadingsAge($rname, $reading, 0) : 99999);
|
||||
if($age < $threshold) {
|
||||
my $age = ($threshold ? ReadingsAge($rname,$reading,undef) : 99999);
|
||||
if(defined($age) && $age < $threshold) {
|
||||
Log3 $name, 4, "$name: ignoring $rname $reading $msg, ".
|
||||
"threshold $threshold, age:$age";
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user