From 1de30fc91210821b02f74a880427f19187f26714 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 4 Dec 2021 21:07:10 -0500 Subject: [PATCH] docs --- .../io/src/main/java/com/rusefi/io/can/Elm327IoStream.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java_console/io/src/main/java/com/rusefi/io/can/Elm327IoStream.java b/java_console/io/src/main/java/com/rusefi/io/can/Elm327IoStream.java index a58f2743f3..00c2bfa410 100644 --- a/java_console/io/src/main/java/com/rusefi/io/can/Elm327IoStream.java +++ b/java_console/io/src/main/java/com/rusefi/io/can/Elm327IoStream.java @@ -26,6 +26,7 @@ public class Elm327IoStream extends AbstractIoStream { private final ByteBuffer outBuf; // this should match the TS_CAN_DEVICE_SHORT_PACKETS_IN_ONE_FRAME in the firmware + // todo: move this to rusefi_config.txt / prepend.txt? private final static boolean sendShortPacketsInOneFrame = true; private final static boolean receiveShortPacketsInOneFrame = false; @@ -92,6 +93,7 @@ public class Elm327IoStream extends AbstractIoStream { super.flush(); byte [] bytes; // for smaller packets, send them in one 'simple' frame by stripping the header+footer off + // i.e. un-pack CRC32 TS protocol // (2 = 16-bit length, 4 = 32-bit crc) if (sendShortPacketsInOneFrame && outBuf.position() >= 2 + 1 + 4 && outBuf.position() <= 2 + 7 + 4) { bytes = Arrays.copyOfRange(outBuf.array(), 2, outBuf.position() - 4);