From 6c5616afbb301bcc99ac5f5a599df55695d0293f Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 22 Jan 2016 18:02:28 -0500 Subject: [PATCH] auto-sync --- .../io/src/com/rusefi/binaryprotocol/BinaryProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java b/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java index 541abb573d..adecba9255 100644 --- a/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java +++ b/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java @@ -266,7 +266,7 @@ public class BinaryProtocol { logger.trace("Got packet size " + packetSize); if (packetSize < 0) return null; - if (!allowLongResponse && packetSize > BLOCKING_FACTOR + 10) + if (!allowLongResponse && packetSize > Math.max(BLOCKING_FACTOR, OUTPUT_CHANNELS_SIZE) + 10) return null; isTimeout = incomingData.waitForBytes(packetSize + 4, start, msg + " body");