Rv2,RS: always load last 45 min

This commit is contained in:
Milos Kozak 2017-12-12 18:18:41 +01:00
parent 88defc9f7b
commit e14272c083
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ public class DanaRSService extends Service {
while (!msg.done && bleComm.isConnected()) {
SystemClock.sleep(100);
}
lastHistoryFetched = DanaRS_Packet_APS_History_Events.lastEventTimeLoaded;
lastHistoryFetched = DanaRS_Packet_APS_History_Events.lastEventTimeLoaded - 45 * 60 * 1000L; // always load last 45 min
log.debug("Events loaded");
return new PumpEnactResult().success(true);
}

View file

@ -527,7 +527,7 @@ public class DanaRv2ExecutionService extends Service {
waitMsec(100);
}
waitMsec(200);
lastHistoryFetched = MsgHistoryEvents_v2.lastEventTimeLoaded;
lastHistoryFetched = MsgHistoryEvents_v2.lastEventTimeLoaded - 45 * 60 * 1000L; //always load last 45 min;
return new PumpEnactResult().success(true);
}