diff --git a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java index 9c81379508..6fc18a132a 100644 --- a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java +++ b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java @@ -113,7 +113,6 @@ public class BinaryProtocol { incomingData = stream.getDataBuffer(); binaryProtocolLogger = new BinaryProtocolLogger(linkManager); - binaryProtocolLogger.needCompositeLogger = linkManager.getCompositeLogicEnabled(); } public static void sleep(long millis) { diff --git a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocolLogger.java b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocolLogger.java index 968c250614..7669ab1216 100644 --- a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocolLogger.java +++ b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocolLogger.java @@ -48,6 +48,7 @@ public class BinaryProtocolLogger { }; Runtime.getRuntime().addShutdownHook(hook); + needCompositeLogger = linkManager.getCompositeLogicEnabled(); } private void createCompositesIfNeeded() {