From 78f0e5a2fed1d34328c19e5dffc9b1ec7025c3f1 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Mon, 3 Nov 2014 09:26:57 +0100 Subject: [PATCH] Bug fixed: when line in HEX is longer than 16 bytes app is crushing during DFU. --- src/no/nordicsemi/android/dfu/HexInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/no/nordicsemi/android/dfu/HexInputStream.java b/src/no/nordicsemi/android/dfu/HexInputStream.java index 891d67d..0fb6f49 100644 --- a/src/no/nordicsemi/android/dfu/HexInputStream.java +++ b/src/no/nordicsemi/android/dfu/HexInputStream.java @@ -25,7 +25,7 @@ import no.nordicsemi.android.dfu.exception.HexFileValidationException; *

*/ public class HexInputStream extends FilterInputStream { - private final int LINE_LENGTH = 16; + private final int LINE_LENGTH = 20; private final byte[] localBuf; private int localPos; private int pos;