Return programmed duration and rate when setting TBR, fixes AAPS-Omnipod/AndroidAPS#12
This commit is contained in:
parent
45f620cb10
commit
26e0df1182
1 changed files with 4 additions and 1 deletions
|
@ -481,7 +481,10 @@ public class AapsOmnipodManager {
|
|||
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue