Merge pull request #18 from samspycher/tbr_response_enhancement
Return programmed duration and rate when setting TBR, fixes AAPS-Omni…
This commit is contained in:
commit
2d4f1378bd
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