cancelTempBasal does not set success flag to true

This commit is contained in:
Lorelai L 2022-12-11 18:39:42 +01:00
parent d7a8323bc8
commit 1d1c47db1b

View file

@ -345,7 +345,7 @@ public class DanaRv2Plugin extends AbstractDanaRPlugin {
PumpEnactResult result = new PumpEnactResult(getInjector()); PumpEnactResult result = new PumpEnactResult(getInjector());
if (danaPump.isTempBasalInProgress()) { if (danaPump.isTempBasalInProgress()) {
sExecutionService.tempBasalStop(); sExecutionService.tempBasalStop();
result.enacted(true).isTempCancel(true); result.success(true).enacted(true).isTempCancel(true);
} else { } else {
result.success(true).isTempCancel(true).comment(info.nightscout.core.ui.R.string.ok); result.success(true).isTempCancel(true).comment(info.nightscout.core.ui.R.string.ok);
aapsLogger.debug(LTag.PUMP, "cancelRealTempBasal: OK"); aapsLogger.debug(LTag.PUMP, "cancelRealTempBasal: OK");