Browse Source

Fix EmonSensor bug

ech1560
Xose Pérez 6 years ago
parent
commit
1d132172a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/sensors/EmonSensor.h

+ 1
- 1
code/espurna/sensors/EmonSensor.h View File

@ -57,7 +57,7 @@ class EmonSensor : public I2CSensor {
void resetEnergy(unsigned char channel, double value = 0) { void resetEnergy(unsigned char channel, double value = 0) {
if (channel >= _channels) return; if (channel >= _channels) return;
_energy[i] = value;
_energy[channel] = value;
} }
// --------------------------------------------------------------------- // ---------------------------------------------------------------------


Loading…
Cancel
Save