Fix taking over low* alerts on connect.
This commit is contained in:
parent
f3bbf861f3
commit
1897051782
1 changed files with 7 additions and 5 deletions
|
@ -263,10 +263,12 @@ public class RuffyScripter implements RuffyCommands {
|
||||||
activeCmd.getResult().success = false;
|
activeCmd.getResult().success = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (getCurrentMenu().getType() == MenuType.WARNING_OR_ERROR && !(cmd instanceof ConfirmAlertCommand)) {
|
} else if (getCurrentMenu().getType() == MenuType.WARNING_OR_ERROR) {
|
||||||
|
if (!(cmd instanceof ConfirmAlertCommand)) {
|
||||||
log.warn("Warning/alert active on pump, but requested command is not ConfirmAlertCommand");
|
log.warn("Warning/alert active on pump, but requested command is not ConfirmAlertCommand");
|
||||||
activeCmd.getResult().success = false;
|
activeCmd.getResult().success = false;
|
||||||
return; // active alert is returned as part of PumpState
|
return; // active alert is returned as part of PumpState
|
||||||
|
}
|
||||||
} else if (getCurrentMenu().getType() != MenuType.MAIN_MENU) {
|
} else if (getCurrentMenu().getType() != MenuType.MAIN_MENU) {
|
||||||
log.debug("Pump is unexpectedly not on main menu but " + getCurrentMenuName());
|
log.debug("Pump is unexpectedly not on main menu but " + getCurrentMenuName());
|
||||||
activeCmd.getResult().success = false;
|
activeCmd.getResult().success = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue