fix DynISF activation

This commit is contained in:
Milos Kozak 2023-09-25 21:33:50 +02:00
parent d6528e4d3c
commit dc4cc6c837
2 changed files with 3 additions and 3 deletions

View file

@ -218,11 +218,11 @@ open class OpenAPSSMBPlugin @Inject constructor(
constraintChecker.isAdvancedFilteringEnabled(it)
inputConstraints.copyReasons(it)
}
val uam = ConstraintObject(false, aapsLogger).also {
val uam = ConstraintObject(true, aapsLogger).also {
constraintChecker.isUAMEnabled(it)
inputConstraints.copyReasons(it)
}
dynIsfEnabled = ConstraintObject(false, aapsLogger).also {
dynIsfEnabled = ConstraintObject(true, aapsLogger).also {
constraintChecker.isDynIsfModeEnabled(it)
inputConstraints.copyReasons(it)
}

View file

@ -19,7 +19,7 @@ class Objective5(injector: HasAndroidInjector) : Objective(injector, "maxiobzero
tasks.add(
object : Task(this, R.string.closedmodeenabled) {
override fun isCompleted(): Boolean {
val closedLoopEnabled = ConstraintObject(false, aapsLogger)
val closedLoopEnabled = ConstraintObject(true, aapsLogger)
safetyPlugin.isClosedLoopAllowed(closedLoopEnabled)
return closedLoopEnabled.value()
}