We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11410cb commit 37554b3Copy full SHA for 37554b3
Loop/Managers/LoopDataManager.swift
@@ -539,7 +539,8 @@ final class LoopDataManager {
539
540
guard
541
lastBolus == nil, // Don't recommend changes if a bolus was just set
542
- let tempBasal = DoseMath.recommendTempBasalFromPredictedGlucose(predictionWithRetrospectiveEffect,
+ let predictedGlucose = self.predictedGlucose,
543
+ let tempBasal = DoseMath.recommendTempBasalFromPredictedGlucose(predictedGlucose,
544
lastTempBasal: lastTempBasal,
545
maxBasalRate: maxBasal,
546
glucoseTargetRange: glucoseTargetRange,
0 commit comments