- removed sutraction of pump reservoir
- removed busy code for bolus
This commit is contained in:
parent
80c1feb1d2
commit
837392f30b
1 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue