From 19ff58ac95d119b80ae3ac109eb812d52aab431b Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Thu, 24 Jun 2021 23:08:32 +0200 Subject: [PATCH] fix timeOnPod --- .../dash/driver/pod/state/OmnipodDashPodStateManagerImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/state/OmnipodDashPodStateManagerImpl.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/state/OmnipodDashPodStateManagerImpl.kt index 96aa31a78c..a8fcd7844f 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/state/OmnipodDashPodStateManagerImpl.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/state/OmnipodDashPodStateManagerImpl.kt @@ -189,7 +189,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor( if ((activationTime != null) && (minutesSinceActivation != null)) { return DateTime(activationTime) .plusMinutes(minutesSinceActivation.toInt()) - .plus(Duration(podState.lastStatusResponseReceived, System.currentTimeMillis())) + .plus(Duration(podState.lastUpdatedSystem, System.currentTimeMillis())) } return null }