mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-17 01:05:30 +00:00
Fixed graph clearing problem
This commit is contained in:
@@ -67,7 +67,7 @@ bool AmsDataStorage::update(AmsData* data) {
|
|||||||
}
|
}
|
||||||
tmElements_t last;
|
tmElements_t last;
|
||||||
breakTime(day.lastMeterReadTime, last);
|
breakTime(day.lastMeterReadTime, last);
|
||||||
for(int i = last.Hour; i <= utc.Hour; i++) {
|
for(int i = last.Hour; i < utc.Hour; i++) {
|
||||||
if(debugger->isActive(RemoteDebug::VERBOSE)) {
|
if(debugger->isActive(RemoteDebug::VERBOSE)) {
|
||||||
debugger->printf("(AmsDataStorage) Clearing hour: %d\n", i);
|
debugger->printf("(AmsDataStorage) Clearing hour: %d\n", i);
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ bool AmsDataStorage::update(AmsData* data) {
|
|||||||
}
|
}
|
||||||
tmElements_t last;
|
tmElements_t last;
|
||||||
breakTime(tz->toLocal(month.lastMeterReadTime), last);
|
breakTime(tz->toLocal(month.lastMeterReadTime), last);
|
||||||
for(int i = last.Day; i <= ltz.Day; i++) {
|
for(int i = last.Day; i < ltz.Day; i++) {
|
||||||
if(debugger->isActive(RemoteDebug::VERBOSE)) {
|
if(debugger->isActive(RemoteDebug::VERBOSE)) {
|
||||||
debugger->printf("(AmsDataStorage) Clearing day: %d\n", i);
|
debugger->printf("(AmsDataStorage) Clearing day: %d\n", i);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user