mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Fix ESP32 energy margins reporting when powered off
This commit is contained in:
parent
227e5f24b6
commit
bca4211500
@ -821,13 +821,13 @@ void EnergyMarginCheck(void) {
|
|||||||
jsonflg = true;
|
jsonflg = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (jsonflg) {
|
if (jsonflg) {
|
||||||
ResponseJsonEndEnd();
|
ResponseJsonEndEnd();
|
||||||
MqttPublishTele(PSTR(D_RSLT_MARGINS));
|
MqttPublishTele(PSTR(D_RSLT_MARGINS));
|
||||||
EnergyMqttShow();
|
EnergyMqttShow();
|
||||||
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Max Power
|
// Max Power
|
||||||
bool set_all_power = true; // Use all power control for backward compatibility
|
bool set_all_power = true; // Use all power control for backward compatibility
|
||||||
|
Loading…
x
Reference in New Issue
Block a user