In Stop mode pump shows menus not supported by ruffy, thus require run mode for most commands.

This commit is contained in:
Johannes Mockenhaupt 2017-11-22 15:46:38 +01:00
parent 681add11a9
commit f3bbf861f3
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
6 changed files with 16 additions and 11 deletions

View file

@ -23,7 +23,7 @@ public abstract class BaseCommand implements Command {
@Override
public boolean needsRunMode() {
return false;
return true;
}
/**

View file

@ -205,11 +205,6 @@ public class BolusCommand extends BaseCommand {
bolusProgressReporter.report(STOPPING, 0, 0);
}
@Override
public boolean needsRunMode() {
return true;
}
@Override
public String toString() {
return "BolusCommand{" +

View file

@ -34,11 +34,6 @@ public class CancelTbrCommand extends BaseCommand {
result = setTbrCommand.result;
}
@Override
public boolean needsRunMode() {
return true;
}
@Override
public String toString() {
return "CancelTbrCommand{}";

View file

@ -11,4 +11,9 @@ public class ConfirmAlertCommand extends BaseCommand {
public void execute() {
result.success(scripter.confirmAlert(warningCode, 5000));
}
@Override
public boolean needsRunMode() {
return false;
}
}

View file

@ -11,4 +11,9 @@ public class ReadPumpStateCommand extends BaseCommand {
public String toString() {
return "ReadPumpStateCommand{}";
}
@Override
public boolean needsRunMode() {
return false;
}
}

View file

@ -50,6 +50,11 @@ public class ReadReservoirLevelAndLastBolus extends BaseCommand {
return new Date(currentYear - 1900, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute()).getTime();
}
@Override
public boolean needsRunMode() {
return false;
}
@Override
public String toString() {
return "ReadReservoirLevelAndLastBolus{}";