mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
ed127e699c
commit
a62ab0a482
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user