diff --git a/src/DC1.cpp b/src/DC1.cpp index 0dc065f..e47a1b0 100644 --- a/src/DC1.cpp +++ b/src/DC1.cpp @@ -658,7 +658,7 @@ void DC1::energyUpdate() { energyUpdateToday(); } - if (perSecond % 301 == 0 && cse7766->Energy.kWhtoday > 0) + if (perSecond % 3600 == 0 && cse7766->Energy.kWhtoday > 0) { energySync(); Config::saveConfig(); @@ -943,4 +943,4 @@ void DC1::reportPower() powerStatTopic[strlen(powerStatTopic) - 1] = ch + 49; // 48 + 1 + ch Mqtt::publish(powerStatTopic, bitRead(lastState, ch) ? "on" : "off", globalConfig.mqtt.retain); } -} \ No newline at end of file +}