From 52ea3be839f971ffc55e464dcde9d23c13e952ee Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Sun, 1 Oct 2023 10:02:17 -0500 Subject: [PATCH] Include pending insulin in dosing decision --- Loop/Managers/LoopDataManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loop/Managers/LoopDataManager.swift b/Loop/Managers/LoopDataManager.swift index b56cddd35b..2319f4eceb 100644 --- a/Loop/Managers/LoopDataManager.swift +++ b/Loop/Managers/LoopDataManager.swift @@ -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