RS: read status more frequently
This commit is contained in:
parent
df700da045
commit
dbbd378671
1 changed files with 2 additions and 0 deletions
|
@ -240,6 +240,8 @@ class DanaRSService : DaggerService() {
|
||||||
}
|
}
|
||||||
danaPump.lastHistoryFetched = if (danaPump.lastEventTimeLoaded != 0L) danaPump.lastEventTimeLoaded - T.mins(1).msecs() else 0
|
danaPump.lastHistoryFetched = if (danaPump.lastEventTimeLoaded != 0L) danaPump.lastEventTimeLoaded - T.mins(1).msecs() else 0
|
||||||
aapsLogger.debug(LTag.PUMPCOMM, "Events loaded")
|
aapsLogger.debug(LTag.PUMPCOMM, "Events loaded")
|
||||||
|
rxBus.send(EventPumpStatusChanged(resourceHelper.gs(R.string.gettingpumpstatus)))
|
||||||
|
sendMessage(DanaRSPacketGeneralInitialScreenInformation(injector))
|
||||||
danaPump.lastConnection = System.currentTimeMillis()
|
danaPump.lastConnection = System.currentTimeMillis()
|
||||||
return PumpEnactResult(injector).success(msg.success())
|
return PumpEnactResult(injector).success(msg.success())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue