Cache last bolus in AapsOmnipodManager

This commit is contained in:
Bart Sopers 2019-12-08 21:02:39 +01:00
parent b46914a97b
commit 6a4765d998

View file

@ -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);