flash_reboot_dfu.bat feedback (#3300)

extra logging
This commit is contained in:
rusefillc 2021-10-04 23:35:18 -04:00
parent 57b5c06431
commit e983b60f57
2 changed files with 16 additions and 3 deletions

View File

@ -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)

View File

@ -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() {