mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-01 20:47:57 +00:00
Added static HA content to progmem
This commit is contained in:
@@ -106,6 +106,10 @@ bool EnergyAccounting::update(AmsData* amsData) {
|
||||
if(debugger->isActive(RemoteDebug::VERBOSE)) debugger->printf("(EnergyAccounting) new threshold %d\n", currentThresholdIdx);
|
||||
}
|
||||
|
||||
if(use > data.maxHour) {
|
||||
data.maxHour = use; // Not really a good idea to use calculated value, but when you pass midnight and have the highest use at hour 23, it will not be included through 'calcDayUse'
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user