sandbox bugfix :(

This commit is contained in:
rusefillc 2021-12-06 01:53:27 -05:00
parent a28651ba7a
commit 4920f521f2
1 changed files with 2 additions and 1 deletions

View File

@ -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);