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