Fix build method after refactor for use of Module class

This commit is contained in:
Dale Schultz 2015-01-15 22:48:21 -05:00
parent 5a92afdcd9
commit 802decaf55
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/* /*
* RomRaider Open-Source Tuning, Logging and Reflashing * RomRaider Open-Source Tuning, Logging and Reflashing
* Copyright (C) 2006-2014 RomRaider.com * Copyright (C) 2006-2015 RomRaider.com
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -217,11 +217,11 @@ public final class SSMProtocol implements Protocol {
} }
for (byte[] tmp : content) { for (byte[] tmp : content) {
bb.write(tmp); bb.write(tmp);
bb.write((byte) 0x00);
request = bb.toByteArray();
final byte cs = calculateChecksum(request);
request[request.length - 1] = cs;
} }
bb.write((byte) 0x00);
request = bb.toByteArray();
final byte cs = calculateChecksum(request);
request[request.length - 1] = cs;
} }
catch (IOException e) { catch (IOException e) {
e.printStackTrace(); e.printStackTrace();