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:
bartsopers 2020-10-12 18:21:20 +02:00 committed by GitHub
commit 2d4f1378bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {