Skip to content

Commit 52ea3be

Browse files
committed
Include pending insulin in dosing decision
1 parent b76ee03 commit 52ea3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ extension LoopDataManager {
11421142
dosingDecision.glucoseTargetRangeSchedule = settings.effectiveGlucoseTargetRangeSchedule()
11431143

11441144
// These will be updated by updatePredictedGlucoseAndRecommendedDose, if possible
1145-
dosingDecision.predictedGlucose = predictedGlucose
1145+
dosingDecision.predictedGlucose = predictedGlucoseIncludingPendingInsulin
11461146
dosingDecision.automaticDoseRecommendation = recommendedAutomaticDose?.recommendation
11471147

11481148
// If the glucose prediction hasn't changed, then nothing has changed, so just use pre-existing recommendations

0 commit comments

Comments
 (0)