diff --git a/java_console/io/src/test/java/com/rusefi/binaryprotocol/test/Elm327Sandbox.java b/java_console/io/src/test/java/com/rusefi/binaryprotocol/test/Elm327Sandbox.java index 7821816025..b7429a5533 100644 --- a/java_console/io/src/test/java/com/rusefi/binaryprotocol/test/Elm327Sandbox.java +++ b/java_console/io/src/test/java/com/rusefi/binaryprotocol/test/Elm327Sandbox.java @@ -98,7 +98,8 @@ public class Elm327Sandbox { private static void runFcommand(String prefix, IoStream tsStream) throws IOException { IncomingDataBuffer dataBuffer = tsStream.getDataBuffer(); - tsStream.sendPacket(new byte[]{Fields.TS_COMMAND_F}); + tsStream.write(new byte[]{Fields.TS_COMMAND_F}); + tsStream.flush(); byte[] fResponse = new byte[3]; dataBuffer.waitForBytes("hello", System.currentTimeMillis(), fResponse.length); dataBuffer.getData(fResponse);