Bug fixed: when line in HEX is longer than 16 bytes app is crushing
during DFU.
This commit is contained in:
parent
ad792eb3cc
commit
78f0e5a2fe
|
@ -25,7 +25,7 @@ import no.nordicsemi.android.dfu.exception.HexFileValidationException;
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public class HexInputStream extends FilterInputStream {
|
public class HexInputStream extends FilterInputStream {
|
||||||
private final int LINE_LENGTH = 16;
|
private final int LINE_LENGTH = 20;
|
||||||
private final byte[] localBuf;
|
private final byte[] localBuf;
|
||||||
private int localPos;
|
private int localPos;
|
||||||
private int pos;
|
private int pos;
|
||||||
|
|
Loading…
Reference in New Issue