Browse Source

Fix getPowerEnergy scope

fastled
Xose Pérez 7 years ago
parent
commit
36b226051f
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      code/espurna/power.ino

+ 4
- 3
code/espurna/power.ino View File

@ -270,6 +270,10 @@ double getApparentPower() {
return roundTo(_power_apparent, POWER_POWER_DECIMALS); return roundTo(_power_apparent, POWER_POWER_DECIMALS);
} }
double getPowerEnergy() {
roundTo(_power_energy, POWER_ENERGY_DECIMALS);
}
#if POWER_HAS_ACTIVE #if POWER_HAS_ACTIVE
double getActivePower() { double getActivePower() {
return roundTo(_power_active, POWER_POWER_DECIMALS); return roundTo(_power_active, POWER_POWER_DECIMALS);
@ -283,9 +287,6 @@ double getPowerFactor() {
return roundTo(_power_factor, 2); return roundTo(_power_factor, 2);
} }
double getPowerEnergy() {
roundTo(_power_energy, POWER_ENERGY_DECIMALS);
}
#endif #endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------


Loading…
Cancel
Save