fix DynISF activation
This commit is contained in:
parent
d6528e4d3c
commit
dc4cc6c837
|
@ -218,11 +218,11 @@ open class OpenAPSSMBPlugin @Inject constructor(
|
||||||
constraintChecker.isAdvancedFilteringEnabled(it)
|
constraintChecker.isAdvancedFilteringEnabled(it)
|
||||||
inputConstraints.copyReasons(it)
|
inputConstraints.copyReasons(it)
|
||||||
}
|
}
|
||||||
val uam = ConstraintObject(false, aapsLogger).also {
|
val uam = ConstraintObject(true, aapsLogger).also {
|
||||||
constraintChecker.isUAMEnabled(it)
|
constraintChecker.isUAMEnabled(it)
|
||||||
inputConstraints.copyReasons(it)
|
inputConstraints.copyReasons(it)
|
||||||
}
|
}
|
||||||
dynIsfEnabled = ConstraintObject(false, aapsLogger).also {
|
dynIsfEnabled = ConstraintObject(true, aapsLogger).also {
|
||||||
constraintChecker.isDynIsfModeEnabled(it)
|
constraintChecker.isDynIsfModeEnabled(it)
|
||||||
inputConstraints.copyReasons(it)
|
inputConstraints.copyReasons(it)
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Objective5(injector: HasAndroidInjector) : Objective(injector, "maxiobzero
|
||||||
tasks.add(
|
tasks.add(
|
||||||
object : Task(this, R.string.closedmodeenabled) {
|
object : Task(this, R.string.closedmodeenabled) {
|
||||||
override fun isCompleted(): Boolean {
|
override fun isCompleted(): Boolean {
|
||||||
val closedLoopEnabled = ConstraintObject(false, aapsLogger)
|
val closedLoopEnabled = ConstraintObject(true, aapsLogger)
|
||||||
safetyPlugin.isClosedLoopAllowed(closedLoopEnabled)
|
safetyPlugin.isClosedLoopAllowed(closedLoopEnabled)
|
||||||
return closedLoopEnabled.value()
|
return closedLoopEnabled.value()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue