Return programmed duration and rate when setting TBR, fixes AAPS-Omnipod/AndroidAPS#12

This commit is contained in:
Sam Spycher 2020-10-08 11:53:15 +02:00
parent 45f620cb10
commit 26e0df1182

View file

@ -481,7 +481,10 @@ public class AapsOmnipodManager {
addTempBasalTreatment(System.currentTimeMillis(), pumpId, tempBasalPair); addTempBasalTreatment(System.currentTimeMillis(), pumpId, tempBasalPair);
return new PumpEnactResult(injector).success(true).enacted(true); return new PumpEnactResult(injector)
.duration(tempBasalPair.getDurationMinutes())
.absolute(PumpType.Insulet_Omnipod.determineCorrectBasalSize(tempBasalPair.getInsulinRate()))
.success(true).enacted(true);
} }
public PumpEnactResult cancelTemporaryBasal() { public PumpEnactResult cancelTemporaryBasal() {