From df25a9b9cefa66f28f8ba7e34e74731ad71b6e35 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 4 Oct 2021 23:35:18 -0400 Subject: [PATCH] flash_reboot_dfu.bat feedback (#3300) extra logging --- .../com/rusefi/autodetect/PortDetector.java | 17 +++++++++++++++-- .../src/main/java/com/rusefi/rusEFIVersion.java | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/java_console/io/src/main/java/com/rusefi/autodetect/PortDetector.java b/java_console/io/src/main/java/com/rusefi/autodetect/PortDetector.java index 41cdbd74e3..3263cde93b 100644 --- a/java_console/io/src/main/java/com/rusefi/autodetect/PortDetector.java +++ b/java_console/io/src/main/java/com/rusefi/autodetect/PortDetector.java @@ -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) diff --git a/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java b/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java index 1b6a167622..385c76dd30 100644 --- a/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java +++ b/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java @@ -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 firmwareVersion = new AtomicReference<>("N/A"); public static long classBuildTimeMillis() {