mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-18 09:21:57 +00:00
Fixed realtime data update
This commit is contained in:
parent
7b0c2eea33
commit
1a265492dd
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user