softer port auto-detection check
This commit is contained in:
parent
c38b4545eb
commit
be44b493b4
|
@ -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", ".");
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue