Browse Source

pzem004tv30: actually ignore initial energy request

amend 037be9aa99
pull/2532/head
Maxim Prokhorov 1 year ago
parent
commit
c86b4c3778
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      code/espurna/sensors/PZEM004TV30Sensor.h

+ 4
- 0
code/espurna/sensors/PZEM004TV30Sensor.h View File

@ -186,6 +186,10 @@ public:
}
}
// Simply ignore energy reset request on boot
void initialEnergy(unsigned char index, espurna::sensor::Energy) override {
}
espurna::sensor::Energy totalEnergy(unsigned char index) const override {
using namespace espurna::sensor;


Loading…
Cancel
Save