Przeglądaj źródła

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 5 dni temu
rodzic
commit
299a61e20a

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

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