Fix ESP32 energy margins reporting when powered off

This commit is contained in:
Theo Arends 2024-10-27 15:32:40 +01:00
parent 227e5f24b6
commit bca4211500
1 changed files with 6 additions and 6 deletions

View File

@ -821,12 +821,12 @@ void EnergyMarginCheck(void) {
jsonflg = true;
}
}
if (jsonflg) {
ResponseJsonEndEnd();
MqttPublishTele(PSTR(D_RSLT_MARGINS));
EnergyMqttShow();
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
}
}
if (jsonflg) {
ResponseJsonEndEnd();
MqttPublishTele(PSTR(D_RSLT_MARGINS));
EnergyMqttShow();
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
}
// Max Power