RS: read status more frequently

This commit is contained in:
Milos Kozak 2021-10-08 23:25:11 +02:00
parent df700da045
commit dbbd378671

View file

@ -240,6 +240,8 @@ class DanaRSService : DaggerService() {
}
danaPump.lastHistoryFetched = if (danaPump.lastEventTimeLoaded != 0L) danaPump.lastEventTimeLoaded - T.mins(1).msecs() else 0
aapsLogger.debug(LTag.PUMPCOMM, "Events loaded")
rxBus.send(EventPumpStatusChanged(resourceHelper.gs(R.string.gettingpumpstatus)))
sendMessage(DanaRSPacketGeneralInitialScreenInformation(injector))
danaPump.lastConnection = System.currentTimeMillis()
return PumpEnactResult(injector).success(msg.success())
}