diff --git a/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java b/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java index 6f8e02aeeb..76b7b252cd 100644 --- a/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java +++ b/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java @@ -55,7 +55,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands { public void start(LinkManager linkManager) { try { - start(linkManager, DEFAULT_PROXY_PORT, Listener.empty(), new Context()); + start(linkManager, DEFAULT_PROXY_PORT, Listener.empty(), new Context()); } catch (IOException e) { log.error("Error starting local proxy", e); } @@ -184,7 +184,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands { BinaryProtocolState binaryProtocolState = linkManager.getBinaryProtocolState(); byte[] currentOutputs = binaryProtocolState.getCurrentOutputs(); if (currentOutputs != null) - System.arraycopy(currentOutputs, 1 + offset, response, 1, count); + System.arraycopy(currentOutputs, offset, response, 1, count); stream.sendPacket(response); } else if (command == Fields.TS_GET_TEXT) { // todo: relay command