Merge pull request #2280 from LoriLori/danaRSv2/bug/cancelTempBasal

cancelTempBasal does not set success flag to true
This commit is contained in:
Milos Kozak 2022-12-11 20:55:20 +01:00 committed by GitHub
commit 97330bcb42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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