From 5aacf8410d5c98c85ff437b114bdeb0e4684ed3b Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 19 Jul 2017 01:30:26 +0200 Subject: [PATCH] Fix CancelTbrCommand to return command resutlt not in PumpState but as part of the CommandResult object. --- .../de/jotomo/ruffyscripter/commands/CancelTbrCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/CancelTbrCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/CancelTbrCommand.java index dfd1f93f4e..7d5acfa806 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/CancelTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/CancelTbrCommand.java @@ -34,8 +34,7 @@ public class CancelTbrCommand implements Command { // to make sure we can inspect this situation. // Set enacted=true, so I record is created and AAPS stops thinking a TBR still // running and trying again to cancel it. - return new CommandResult().success(false).enacted(true) - .state(new PumpState().errorMsg("NO TBR active")); + return new CommandResult().success(false).enacted(true).message("No TBR active"); /* .success(true) .enacted(true) // technically, nothing was enacted, but AAPS needs this to recover