all this is too broken, need proper test for all this :(

This commit is contained in:
rusefi 2020-07-25 20:44:33 -04:00
parent 831829cd45
commit c5c930878d
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
int fromPacket = IoHelper.getCrc32(packet);
if (crc != fromPacket)
throw new IllegalStateException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet));
in.onPacketArrived();
// todo?! in.onPacketArrived();
return new Packet(packet, crc);
}