last connection fix RS,Rv2
This commit is contained in:
parent
eeeda92857
commit
220c099591
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,6 @@ public class DanaRSService extends Service {
|
|||
|
||||
loadEvents();
|
||||
|
||||
danaRPump.lastConnection = now;
|
||||
MainApp.bus().post(new EventDanaRNewStatus());
|
||||
MainApp.bus().post(new EventInitializationChanged());
|
||||
NSUpload.uploadDeviceStatus();
|
||||
|
@ -190,6 +189,7 @@ public class DanaRSService extends Service {
|
|||
else
|
||||
lastHistoryFetched = 0;
|
||||
log.debug("Events loaded");
|
||||
danaRPump.lastConnection = System.currentTimeMillis();
|
||||
return new PumpEnactResult().success(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -209,7 +209,6 @@ public class DanaRv2ExecutionService extends AbstractDanaRExecutionService {
|
|||
|
||||
loadEvents();
|
||||
|
||||
mDanaRPump.lastConnection = now;
|
||||
MainApp.bus().post(new EventDanaRNewStatus());
|
||||
MainApp.bus().post(new EventInitializationChanged());
|
||||
NSUpload.uploadDeviceStatus();
|
||||
|
@ -413,6 +412,7 @@ public class DanaRv2ExecutionService extends AbstractDanaRExecutionService {
|
|||
lastHistoryFetched = MsgHistoryEvents_v2.lastEventTimeLoaded - 45 * 60 * 1000L; //always load last 45 min;
|
||||
else
|
||||
lastHistoryFetched = 0;
|
||||
mDanaRPump.lastConnection = System.currentTimeMillis();
|
||||
return new PumpEnactResult().success(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue