Skip to content

Commit

Permalink
Include pending insulin in dosing decision
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed Oct 1, 2023
1 parent b76ee03 commit 52ea3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/Managers/LoopDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ extension LoopDataManager {
dosingDecision.glucoseTargetRangeSchedule = settings.effectiveGlucoseTargetRangeSchedule()

// These will be updated by updatePredictedGlucoseAndRecommendedDose, if possible
dosingDecision.predictedGlucose = predictedGlucose
dosingDecision.predictedGlucose = predictedGlucoseIncludingPendingInsulin
dosingDecision.automaticDoseRecommendation = recommendedAutomaticDose?.recommendation

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

0 comments on commit 52ea3be

Please sign in to comment.