mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
Merge pull request #2534 from uzi18/patch-5
[P076] setMode is not needed in interrupt mode
This commit is contained in:
@@ -324,8 +324,13 @@ boolean Plugin_076(byte function, struct EventStruct *event, String &string) {
|
||||
if (Plugin_076_hlw) {
|
||||
if (p076_read_stage == 0) {
|
||||
// Force a measurement start.
|
||||
++p076_read_stage;
|
||||
} else if (p076_read_stage > 3) {
|
||||
// ++p076_read_stage;
|
||||
// } else if (p076_read_stage > 3) {
|
||||
p076_hpower = Plugin_076_hlw->getActivePower();
|
||||
p076_hvoltage = Plugin_076_hlw->getVoltage();
|
||||
p076_hcurrent = Plugin_076_hlw->getCurrent();
|
||||
p076_hpowfact = (int)(100 * Plugin_076_hlw->getPowerFactor());
|
||||
|
||||
// Measurement is complete.
|
||||
p076_read_stage = 0;
|
||||
if (PLUGIN_076_DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user