This commit is contained in:
2018-08-16 10:56:50 +02:00
parent f5737189be
commit 525bb7ee38
9 changed files with 1949 additions and 1799 deletions

View File

@@ -52,9 +52,11 @@ public class PuckDetection extends DeviceBase {
try {
while (!Thread.currentThread().isInterrupted()) {
if (chrono.isTimeout(3000)) {
setState(State.Offline);
if (Controller.getInstance() != null) {
Controller.getInstance().clearPuckStates();
if (!isSimulated()) {
setState(State.Offline);
if (Controller.getInstance() != null) {
Controller.getInstance().clearPuckStates();
}
}
}
Thread.sleep(1000);