parent
57b5c06431
commit
e983b60f57
|
@ -54,6 +54,11 @@ public class PortDetector {
|
||||||
public void run() {
|
public void run() {
|
||||||
new SerialAutoChecker(serialPort, portFound).openAndCheckResponse(result, callback);
|
new SerialAutoChecker(serialPort, portFound).openAndCheckResponse(result, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return serialPort + " " + super.toString();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
serialFinder.add(thread);
|
serialFinder.add(thread);
|
||||||
thread.start();
|
thread.start();
|
||||||
|
@ -63,8 +68,16 @@ public class PortDetector {
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
for (Thread thread : serialFinder)
|
log.info("Now interrupting " + serialFinder);
|
||||||
thread.interrupt();
|
try {
|
||||||
|
for (Thread thread : serialFinder) {
|
||||||
|
log.info("Interrupting " + thread);
|
||||||
|
thread.interrupt();
|
||||||
|
}
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
log.error("Unexpected runtime", e);
|
||||||
|
}
|
||||||
|
log.info("Done interrupting!");
|
||||||
|
|
||||||
SerialAutoChecker.AutoDetectResult autoDetectResult = result.get();
|
SerialAutoChecker.AutoDetectResult autoDetectResult = result.get();
|
||||||
if (autoDetectResult == null)
|
if (autoDetectResult == null)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import java.net.URL;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public class rusEFIVersion {
|
public class rusEFIVersion {
|
||||||
public static final int CONSOLE_VERSION = 20211003;
|
public static final int CONSOLE_VERSION = 20211004;
|
||||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||||
|
|
||||||
public static long classBuildTimeMillis() {
|
public static long classBuildTimeMillis() {
|
||||||
|
|
Loading…
Reference in New Issue