more GUI improvements

This commit is contained in:
Stephan Richter
2020-12-11 01:53:18 +01:00
parent e80d5fe79f
commit 9810b453cb
7 changed files with 42 additions and 7 deletions

View File

@@ -24,8 +24,9 @@ public class SetTurnout extends Action {
@Override
public boolean fire(Context context) {
if (isNull(turnout)) return false;
if (isNull(turnout)) return false;
if (!turnout.state(state).succeeded()) return false;
if (turnout.address() == 0) return true;
try {
Thread.sleep(1000);
} catch (InterruptedException e) {