Cache last bolus in AapsOmnipodManager
This commit is contained in:
parent
b46914a97b
commit
6a4765d998
1 changed files with 2 additions and 2 deletions
|
@ -257,8 +257,8 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
||||||
double unitsDelivered = bolusDeliveryResult.getUnitsDelivered();
|
double unitsDelivered = bolusDeliveryResult.getUnitsDelivered();
|
||||||
|
|
||||||
if (pumpStatus != null && !isSmb) {
|
if (pumpStatus != null && !isSmb) {
|
||||||
pumpStatus.lastBolusTime = bolusStarted;
|
lastBolusTime = pumpStatus.lastBolusTime = bolusStarted;
|
||||||
pumpStatus.lastBolusAmount = unitsDelivered;
|
lastBolusUnits = pumpStatus.lastBolusAmount = unitsDelivered;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new PumpEnactResult().success(true).enacted(true).bolusDelivered(unitsDelivered);
|
return new PumpEnactResult().success(true).enacted(true).bolusDelivered(unitsDelivered);
|
||||||
|
|
Loading…
Reference in a new issue