From 837392f30bc7f5f97c8be288a38703593c2f7f27 Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sun, 15 Dec 2019 23:34:22 +0000 Subject: [PATCH] - removed sutraction of pump reservoir - removed busy code for bolus --- .../plugins/pump/omnipod/OmnipodPumpPlugin.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java index ffca08c519..feeea1b4e2 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java @@ -576,10 +576,10 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo, true); // we subtract insulin, exact amount will be visible with next remainingInsulin update. - if (getPodPumpStatusObject().reservoirRemainingUnits != 0 && - getPodPumpStatusObject().reservoirRemainingUnits != 75 ) { - getPodPumpStatusObject().reservoirRemainingUnits -= detailedBolusInfo.insulin; - } +// if (getPodPumpStatusObject().reservoirRemainingUnits != 0 && +// getPodPumpStatusObject().reservoirRemainingUnits != 75 ) { +// getPodPumpStatusObject().reservoirRemainingUnits -= detailedBolusInfo.insulin; +// } incrementStatistics(detailedBolusInfo.isSMB ? OmnipodConst.Statistics.SMBBoluses : OmnipodConst.Statistics.StandardBoluses); @@ -587,10 +587,10 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump // calculate time for bolus and set driver to busy for that time // TODO fix this - int bolusTime = 1; //omnipodCommunicationManager.get; - long time = System.currentTimeMillis() + (bolusTime * 1000); - - this.busyTimestamps.add(time); +// int bolusTime = 1; //omnipodCommunicationManager.get; +// long time = System.currentTimeMillis() + (bolusTime * 1000); +// +// this.busyTimestamps.add(time); result.bolusDelivered(detailedBolusInfo.insulin).carbsDelivered(detailedBolusInfo.carbs); }