In Stop mode pump shows menus not supported by ruffy, thus require run mode for most commands.
This commit is contained in:
parent
681add11a9
commit
f3bbf861f3
|
@ -23,7 +23,7 @@ public abstract class BaseCommand implements Command {
|
|||
|
||||
@Override
|
||||
public boolean needsRunMode() {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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{" +
|
||||
|
|
|
@ -34,11 +34,6 @@ public class CancelTbrCommand extends BaseCommand {
|
|||
result = setTbrCommand.result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean needsRunMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CancelTbrCommand{}";
|
||||
|
|
|
@ -11,4 +11,9 @@ public class ConfirmAlertCommand extends BaseCommand {
|
|||
public void execute() {
|
||||
result.success(scripter.confirmAlert(warningCode, 5000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean needsRunMode() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,9 @@ public class ReadPumpStateCommand extends BaseCommand {
|
|||
public String toString() {
|
||||
return "ReadPumpStateCommand{}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean needsRunMode() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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{}";
|
||||
|
|
Loading…
Reference in a new issue