Puck detetion mode - during loading only
This commit is contained in:
@@ -504,12 +504,8 @@ public class MainPanel extends Panel {
|
||||
|
||||
Controller.getInstance().onTimer();
|
||||
if (getState() == State.Ready) {
|
||||
Boolean puckLoading = Controller.getInstance().isPuckLoading();
|
||||
if (puckLoading==null){
|
||||
setStatus("Ready");
|
||||
} else {
|
||||
setStatus(puckLoading ? PUCK_LOADING_STATUS : PUCK_UNLOADING_STATUS);
|
||||
}
|
||||
boolean puckLoading = Controller.getInstance().isPuckLoading();
|
||||
setStatus((puckLoading==false) ? "Ready" : PUCK_LOADING_STATUS);
|
||||
} else {
|
||||
status = null;
|
||||
}
|
||||
@@ -672,7 +668,7 @@ public class MainPanel extends Panel {
|
||||
}
|
||||
if (!Boolean.TRUE.equals(value)){
|
||||
try {
|
||||
Controller.getInstance().setPuckLoading(null);
|
||||
Controller.getInstance().setPuckLoading(false);
|
||||
} catch (Exception ex) {
|
||||
getLogger().log(Level.WARNING, null, ex);
|
||||
}
|
||||
@@ -1141,7 +1137,7 @@ public class MainPanel extends Panel {
|
||||
Boolean.FALSE.equals(Controller.getInstance().isDoorClosed())){
|
||||
try{
|
||||
if ((fmm!=null)){
|
||||
Controller.getInstance().setPuckLoading(null);
|
||||
Controller.getInstance().setPuckLoading(false);
|
||||
} else {
|
||||
if (doorsHaveOpened){
|
||||
doorsHaveOpened=false;
|
||||
|
||||
Reference in New Issue
Block a user