Преглед изворни кода

Change profile target dynISF condition with HighTTRaisesSend
- Before this change, condition checked whether highTTRaisesSens was active AND user's profile target >= 118
- We received an issue report by a parent whose child runs with profile target set at >118, thus dynISF NEVER activated
- Change now moves this check condition to a saner target of halfBasalExerciseTarget, to ONLY disable dynISF if the user ACTUALLY sets a TT at a target value >= HBT (which by default is 160)

Deniz Cengiz пре 4 дана
родитељ
комит
299a61e20a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Trio/Sources/APS/OpenAPSSwift/DetermineBasal/DynamicISF.swift

+ 2 - 1
Trio/Sources/APS/OpenAPSSwift/DetermineBasal/DynamicISF.swift

@@ -159,7 +159,7 @@ extension Preferences {
 
         // checks for 'exercise mode' like conditions
         if profile.highTemptargetRaisesSensitivity,
-           let profileTarget = profile.profileTarget(trioCustomOrefVariables: trioCustomOrefVariables), profileTarget >= 118
+           let profileTarget = profile.profileTarget(trioCustomOrefVariables: trioCustomOrefVariables), profileTarget >= profile.halfBasalExerciseTarget
         {
             return .off
         }
@@ -167,3 +167,4 @@ extension Preferences {
         return sigmoid ? .sigmoid : .logrithmic
     }
 }
+g