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
6 changed files with 16 additions and 11 deletions
|
@ -23,7 +23,7 @@ public abstract class BaseCommand implements Command {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean needsRunMode() {
|
public boolean needsRunMode() {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -205,11 +205,6 @@ public class BolusCommand extends BaseCommand {
|
||||||
bolusProgressReporter.report(STOPPING, 0, 0);
|
bolusProgressReporter.report(STOPPING, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean needsRunMode() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "BolusCommand{" +
|
return "BolusCommand{" +
|
||||||
|
|
|
@ -34,11 +34,6 @@ public class CancelTbrCommand extends BaseCommand {
|
||||||
result = setTbrCommand.result;
|
result = setTbrCommand.result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean needsRunMode() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CancelTbrCommand{}";
|
return "CancelTbrCommand{}";
|
||||||
|
|
|
@ -11,4 +11,9 @@ public class ConfirmAlertCommand extends BaseCommand {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
result.success(scripter.confirmAlert(warningCode, 5000));
|
result.success(scripter.confirmAlert(warningCode, 5000));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean needsRunMode() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,9 @@ public class ReadPumpStateCommand extends BaseCommand {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ReadPumpStateCommand{}";
|
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();
|
return new Date(currentYear - 1900, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute()).getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean needsRunMode() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ReadReservoirLevelAndLastBolus{}";
|
return "ReadReservoirLevelAndLastBolus{}";
|
||||||
|
|
Loading…
Reference in a new issue