From be44b493b4def8b6efa3402a686e0c8fdf86c62f Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 23 Dec 2019 23:36:37 -0500 Subject: [PATCH] softer port auto-detection check --- java_console/ui/src/com/rusefi/Launcher.java | 2 +- .../ui/src/com/rusefi/autodetect/SerialAutoChecker.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java_console/ui/src/com/rusefi/Launcher.java b/java_console/ui/src/com/rusefi/Launcher.java index e566fc20be..a84267101c 100644 --- a/java_console/ui/src/com/rusefi/Launcher.java +++ b/java_console/ui/src/com/rusefi/Launcher.java @@ -49,7 +49,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig; * @see EngineSnifferPanel */ public class Launcher { - public static final int CONSOLE_VERSION = 20191222; + public static final int CONSOLE_VERSION = 20191223; public static final String INI_FILE_PATH = System.getProperty("ini_file_path", ".."); public static final String INPUT_FILES_PATH = System.getProperty("input_files_path", ".."); public static final String TOOLS_PATH = System.getProperty("tools_path", "."); diff --git a/java_console/ui/src/com/rusefi/autodetect/SerialAutoChecker.java b/java_console/ui/src/com/rusefi/autodetect/SerialAutoChecker.java index d62c9370b0..c675898b72 100644 --- a/java_console/ui/src/com/rusefi/autodetect/SerialAutoChecker.java +++ b/java_console/ui/src/com/rusefi/autodetect/SerialAutoChecker.java @@ -41,7 +41,8 @@ class SerialAutoChecker implements Runnable { return; String message = new String(response, 1, response.length - 1); System.out.println("Got " + message + " from " + serialPort); - if (message.startsWith(Fields.TS_SIGNATURE)) { + String signatureWithoutMinorVersion = Fields.TS_SIGNATURE.substring(0, Fields.TS_SIGNATURE.length() - 2); + if (message.startsWith(signatureWithoutMinorVersion)) { result.set(serialPort); portFound.countDown(); }