parent
57b5c06431
commit
e983b60f57
|
@ -54,6 +54,11 @@ public class PortDetector {
|
|||
public void run() {
|
||||
new SerialAutoChecker(serialPort, portFound).openAndCheckResponse(result, callback);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return serialPort + " " + super.toString();
|
||||
}
|
||||
});
|
||||
serialFinder.add(thread);
|
||||
thread.start();
|
||||
|
@ -63,8 +68,16 @@ public class PortDetector {
|
|||
} catch (InterruptedException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
for (Thread thread : serialFinder)
|
||||
thread.interrupt();
|
||||
log.info("Now interrupting " + serialFinder);
|
||||
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();
|
||||
if (autoDetectResult == null)
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.net.URL;
|
|||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
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 long classBuildTimeMillis() {
|
||||
|
|
Loading…
Reference in New Issue