Fixed realtime data update

This commit is contained in:
Gunnar Skjold 2023-09-26 20:14:08 +02:00
parent 7b0c2eea33
commit 1a265492dd

View File

@ -59,6 +59,7 @@ bool EnergyAccounting::update(AmsData* amsData) {
if(!init) {
this->realtimeData->lastImportUpdateMillis = 0;
this->realtimeData->lastExportUpdateMillis = 0;
this->realtimeData->currentHour = local.Hour;
this->realtimeData->currentDay = local.Day;
if(debugger->isActive(RemoteDebug::DEBUG)) debugger->printf_P(PSTR("(EnergyAccounting) Initializing data at %lu\n"), (int32_t) now);