- 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);
|
TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo, true);
|
||||||
|
|
||||||
// we subtract insulin, exact amount will be visible with next remainingInsulin update.
|
// we subtract insulin, exact amount will be visible with next remainingInsulin update.
|
||||||
if (getPodPumpStatusObject().reservoirRemainingUnits != 0 &&
|
// if (getPodPumpStatusObject().reservoirRemainingUnits != 0 &&
|
||||||
getPodPumpStatusObject().reservoirRemainingUnits != 75 ) {
|
// getPodPumpStatusObject().reservoirRemainingUnits != 75 ) {
|
||||||
getPodPumpStatusObject().reservoirRemainingUnits -= detailedBolusInfo.insulin;
|
// getPodPumpStatusObject().reservoirRemainingUnits -= detailedBolusInfo.insulin;
|
||||||
}
|
// }
|
||||||
|
|
||||||
incrementStatistics(detailedBolusInfo.isSMB ? OmnipodConst.Statistics.SMBBoluses
|
incrementStatistics(detailedBolusInfo.isSMB ? OmnipodConst.Statistics.SMBBoluses
|
||||||
: OmnipodConst.Statistics.StandardBoluses);
|
: 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
|
// calculate time for bolus and set driver to busy for that time
|
||||||
|
|
||||||
// TODO fix this
|
// TODO fix this
|
||||||
int bolusTime = 1; //omnipodCommunicationManager.get;
|
// int bolusTime = 1; //omnipodCommunicationManager.get;
|
||||||
long time = System.currentTimeMillis() + (bolusTime * 1000);
|
// long time = System.currentTimeMillis() + (bolusTime * 1000);
|
||||||
|
//
|
||||||
this.busyTimestamps.add(time);
|
// this.busyTimestamps.add(time);
|
||||||
result.bolusDelivered(detailedBolusInfo.insulin).carbsDelivered(detailedBolusInfo.carbs);
|
result.bolusDelivered(detailedBolusInfo.insulin).carbsDelivered(detailedBolusInfo.carbs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue