From a670a04ab9018285e19d69145a3ea95fcabcc55c Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Sun, 10 Nov 2019 22:43:33 +0100 Subject: [PATCH] Add some todos --- .../androidaps/plugins/pump/omnipod/comm/OmnipodManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodManager.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodManager.java index f7f19f5848..8527a104f6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodManager.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodManager.java @@ -66,6 +66,8 @@ public class OmnipodManager { BasalScheduleMapper.mapProfileToBasalSchedule(profile))); executeDelayed(() -> { + // TODO improve: repeat get status when it fails and handle unexpected statuses + // TODO give user feedback when priming finished (or somehow failed) StatusResponse delayedStatusResponse = communicationService.executeAction(new GetStatusAction(podState)); InsertCannulaAction.updateCannulaInsertionStatus(podState, delayedStatusResponse); }, OmnipodConst.POD_CANNULA_INSERTION_DURATION); @@ -87,6 +89,8 @@ public class OmnipodManager { communicationService.executeAction(new PrimeAction(new PrimeService(), podState)); executeDelayed(() -> { + // TODO improve: repeat get status when it fails and handle unexpected statuses + // TODO give user feedback when priming finished (or somehow failed) StatusResponse delayedStatusResponse = communicationService.executeAction(new GetStatusAction(podState)); PrimeAction.updatePrimingStatus(podState, delayedStatusResponse); }, OmnipodConst.POD_PRIME_DURATION); @@ -193,6 +197,7 @@ public class OmnipodManager { return new PumpEnactResult().success(false).enacted(false).comment(ex.getMessage()); } + // TODO calculate bolus duration return new PumpEnactResult().success(true).enacted(true); }