fix loop plugin TBR cancel

This commit is contained in:
Milos Kozak 2022-01-17 12:54:10 +01:00
parent 4fb1704912
commit 36030683be

View file

@ -534,8 +534,7 @@ class LoopPlugin @Inject constructor(
callback?.result(PumpEnactResult(injector).absolute(request.rate).duration(0) callback?.result(PumpEnactResult(injector).absolute(request.rate).duration(0)
.enacted(false).success(true).comment(R.string.basal_set_correctly))?.run() .enacted(false).success(true).comment(R.string.basal_set_correctly))?.run()
} }
} } else if (request.usePercent && allowPercentage()) {
if (request.usePercent && allowPercentage()) {
if (request.percent == 100 && request.duration == 0) { if (request.percent == 100 && request.duration == 0) {
if (activeTemp != null) { if (activeTemp != null) {
aapsLogger.debug(LTag.APS, "applyAPSRequest: cancelTempBasal()") aapsLogger.debug(LTag.APS, "applyAPSRequest: cancelTempBasal()")