EnergyMargins - always send MQTT telemetry message (#19397)

This commit is contained in:
SteWers authored and GitHub committed 2023-08-27 10:53:04 +02:00
1 parent 3ed1bead44
commit dd8b85282a
2 files changed
+2 -2

No files matched your search

@@ -564,7 +564,7 @@ void EnergyMarginCheck(void) {
if (jsonflg) {
ResponseJsonEndEnd();
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
// EnergyMqttShow();
EnergyMqttShow();
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
}
@@ -787,7 +787,7 @@ void EnergyMarginCheck(void) {
if (jsonflg) {
ResponseJsonEndEnd();
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
// EnergyMqttShow();
EnergyMqttShow();
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
}