mirror of https://github.com/arendst/Tasmota.git
Fix ESP32 energy margins reporting when powered off
This commit is contained in:
parent
227e5f24b6
commit
bca4211500
|
@ -821,12 +821,12 @@ void EnergyMarginCheck(void) {
|
||||||
jsonflg = true;
|
jsonflg = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (jsonflg) {
|
}
|
||||||
ResponseJsonEndEnd();
|
if (jsonflg) {
|
||||||
MqttPublishTele(PSTR(D_RSLT_MARGINS));
|
ResponseJsonEndEnd();
|
||||||
EnergyMqttShow();
|
MqttPublishTele(PSTR(D_RSLT_MARGINS));
|
||||||
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
EnergyMqttShow();
|
||||||
}
|
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
||||||
}
|
}
|
||||||
|
|
||||||
// Max Power
|
// Max Power
|
||||||
|
|
Loading…
Reference in New Issue