From 26e0df11829781f1a78566bb22f3fab8b5c3fb7e Mon Sep 17 00:00:00 2001 From: Sam Spycher Date: Thu, 8 Oct 2020 11:53:15 +0200 Subject: [PATCH] Return programmed duration and rate when setting TBR, fixes AAPS-Omnipod/AndroidAPS#12 --- .../plugins/pump/omnipod/manager/AapsOmnipodManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java index cddf3b2692..dca84bd3ba 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java @@ -481,7 +481,10 @@ public class AapsOmnipodManager { addTempBasalTreatment(System.currentTimeMillis(), pumpId, tempBasalPair); - return new PumpEnactResult(injector).success(true).enacted(true); + return new PumpEnactResult(injector) + .duration(tempBasalPair.getDurationMinutes()) + .absolute(PumpType.Insulet_Omnipod.determineCorrectBasalSize(tempBasalPair.getInsulinRate())) + .success(true).enacted(true); } public PumpEnactResult cancelTemporaryBasal() {