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

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

View File

@ -113,7 +113,7 @@ sub Revolt_Parse($$)
if (0 == $pf) { if (0 == $pf) {
$pf = 0.0001; $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)) || ((($power / $voltage / $pf) > 0.00999) && (0 == $current)) ||
($energydiff > $maxenergy)) { ($energydiff > $maxenergy)) {
$isInvalid = 1; $isInvalid = 1;