From 3ad971a673d55528d73c45dc01d98f29ab7e6f4f Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 16 May 2015 10:12:59 -0400 Subject: [PATCH] auto-sync --- java_console/io/src/com/rusefi/io/LinkManager.java | 2 +- java_console/io/src/com/rusefi/io/tcp/TcpConnector.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java_console/io/src/com/rusefi/io/LinkManager.java b/java_console/io/src/com/rusefi/io/LinkManager.java index 6ef9ebe9b5..7278e36915 100644 --- a/java_console/io/src/com/rusefi/io/LinkManager.java +++ b/java_console/io/src/com/rusefi/io/LinkManager.java @@ -48,7 +48,7 @@ public class LinkManager { @Override public String unpackConfirmation(String message) { - return TcpConnector.doUnpackConfirmation(message); + return message; } }; public static final LinkedBlockingQueue COMMUNICATION_QUEUE = new LinkedBlockingQueue<>(); diff --git a/java_console/io/src/com/rusefi/io/tcp/TcpConnector.java b/java_console/io/src/com/rusefi/io/tcp/TcpConnector.java index 204dd08ebf..f0b13f3feb 100644 --- a/java_console/io/src/com/rusefi/io/tcp/TcpConnector.java +++ b/java_console/io/src/com/rusefi/io/tcp/TcpConnector.java @@ -154,7 +154,9 @@ public class TcpConnector implements LinkConnector { @Override public String unpackConfirmation(String message) { - return doUnpackConfirmation(message); + if (message.startsWith(CommandQueue.CONFIRMATION_PREFIX)) + return message.substring(CommandQueue.CONFIRMATION_PREFIX.length()); + return null; } public static Collection getAvailablePorts() {