Broadcasting from Android crashes #1696

This commit is contained in:
rusefi 2020-08-16 17:11:47 -04:00
parent b98266feca
commit 898abc6f0b
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ dependencies {
implementation project(':models')
implementation libs.annotations
def acraVersion = '5.6.1'
def acraVersion = '5.7.0'
implementation "ch.acra:acra-http:$acraVersion"
implementation "ch.acra:acra-mail:$acraVersion"
implementation "ch.acra:acra-dialog:$acraVersion"

View File

@ -391,7 +391,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
int crc = in.readInt();
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));
throw new IOException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet));
in.onPacketArrived();
return new Packet(packet, crc);
}