Skip to content

Commit b944488

Browse files
authored
Merge pull request #1235 from LoopKit/current-bg-dosing-thresholds
Include current bg for suspend threshold and dosing thresholds
2 parents 169b429 + 0a19eff commit b944488

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ extension LoopDataManager {
994994

995995
let tempBasal = predictedGlucose.recommendedTempBasal(
996996
to: glucoseTargetRange,
997+
at: predictedGlucose[0].startDate,
997998
suspendThreshold: settings.suspendThreshold?.quantity,
998999
sensitivity: insulinSensitivity,
9991000
model: model,
@@ -1020,6 +1021,7 @@ extension LoopDataManager {
10201021

10211022
let recommendation = predictedGlucose.recommendedBolus(
10221023
to: glucoseTargetRange,
1024+
at: predictedGlucose[0].startDate,
10231025
suspendThreshold: settings.suspendThreshold?.quantity,
10241026
sensitivity: insulinSensitivity,
10251027
model: model,

0 commit comments

Comments
 (0)