diff --git a/code/espurna/pow.ino b/code/espurna/pow.ino index bf11624b..488fb350 100644 --- a/code/espurna/pow.ino +++ b/code/espurna/pow.ino @@ -114,7 +114,7 @@ unsigned int getReactivePower() { double getCurrent() { double current = hlw8012.getCurrent(); - if (POW_MIN_CURRENT > current || current > POW_MAX_CURRENT) power = 0; + if (POW_MIN_CURRENT > current || current > POW_MAX_CURRENT) current = 0; return current; }