Skip to content

Commit 503a614

Browse files
authored
Use standard forecast for bolus recommendations. (#454)
* Use the normal forecast for bolusing. * remove semicolon
1 parent bacb88e commit 503a614

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -836,22 +836,7 @@ final class LoopDataManager {
836836
insulinActionDuration: insulinActionDuration
837837
)
838838

839-
// TODO: This was added in https://github.com/LoopKit/Loop/issues/370, but concerns were raised
840-
// that this contradicts users expectations in https://github.com/LoopKit/Loop/issues/435
841-
let bolusSafetyEffects = settings.enabledEffects.subtracting([.retrospection, .momentum])
842-
843-
return min(recommendation,
844-
DoseMath.recommendBolusFromPredictedGlucose(
845-
try predictGlucoseFromCurrentData(using: bolusSafetyEffects),
846-
maxBolus: maxBolus,
847-
glucoseTargetRange: glucoseTargetRange,
848-
insulinSensitivity: insulinSensitivity,
849-
basalRateSchedule: basalRates,
850-
pendingInsulin: pendingInsulin,
851-
minimumBGGuard: minimumBGGuard,
852-
insulinActionDuration: insulinActionDuration
853-
)
854-
)
839+
return recommendation
855840
}
856841

857842
/// *This method should only be called from the `dataAccessQueue`*

0 commit comments

Comments
 (0)