Skip to content

Commit 37554b3

Browse files
committed
Do not use retrospectiveCorrection if disabled in calculating temp basal rate.
1 parent 11410cb commit 37554b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ final class LoopDataManager {
539539

540540
guard
541541
lastBolus == nil, // Don't recommend changes if a bolus was just set
542-
let tempBasal = DoseMath.recommendTempBasalFromPredictedGlucose(predictionWithRetrospectiveEffect,
542+
let predictedGlucose = self.predictedGlucose,
543+
let tempBasal = DoseMath.recommendTempBasalFromPredictedGlucose(predictedGlucose,
543544
lastTempBasal: lastTempBasal,
544545
maxBasalRate: maxBasal,
545546
glucoseTargetRange: glucoseTargetRange,

0 commit comments

Comments
 (0)