2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

HMInfo:minor bug fix - remove warning

git-svn-id: https://svn.fhem.de/fhem/trunk@22070 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-05-29 18:30:02 +00:00
parent d179a37455
commit 9f1c4fa9ee

View File

@ -2686,7 +2686,7 @@ sub HMinfo_templateSet(@){#####################################################
my ($min,$max) = ($1,$2) if ($ret =~ m/range:(.*) to (.*) :/);
$max = 0 if (!$max);
$max =~ s/([0-9\.]+).*/$1/;
return "$regV out of range: $min to $max" if ($min && ($regV < $min || ($max && $regV > $max)));
return "$regV out of range: $min to $max" if ($regV !~ m /^set_/ && $min && ($regV < $min || ($max && $regV > $max)));
}
push @regCh,"$regN,$regV";
}