Open gesquiel opened 6 years ago
Pentair.cpp line ~196 has: if ((abs((watts - _currentPumpStatus[pump].watts) / watts)) > .05) { should be: if ((abs((watts - _currentPumpStatus[pump].watts) / 100)) > .05) {
as watts can be 0 causing div by zero but anyway % calcs are done wrong.
whoops :) can you send a pull request? If not I will try to change it once I have time again :)
Pentair.cpp line ~196 has: if ((abs((watts - _currentPumpStatus[pump].watts) / watts)) > .05) { should be: if ((abs((watts - _currentPumpStatus[pump].watts) / 100)) > .05) {
as watts can be 0 causing div by zero but anyway % calcs are done wrong.