19_Revolt: Fix division by zero in plausi check from r17439 (Forum #71840)

git-svn-id: https://svn.fhem.de/fhem/trunk@17441 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
yoda_gh
2018-09-30 20:41:09 +00:00
parent ddeddbb971
commit 4f875a6df3

View File

@@ -113,7 +113,7 @@ sub Revolt_Parse($$)
if (0 == $pf) {
$pf = 0.0001;
}
if (($freq > 55) || ($power > 3650) || ($current > 16) ||
if (($voltage < 80) || ($freq > 65) || ($power > 3650) || ($current > 16) ||
((($power / $voltage / $pf) > 0.00999) && (0 == $current)) ||
($energydiff > $maxenergy)) {
$isInvalid = 1;