diff options
author | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2012-03-29 01:34:31 +1100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2012-03-29 10:17:05 +1100 |
commit | 713af23d0a8a65926e03ad2e50406aae2463e6e1 (patch) | |
tree | de05850788b7a16ffe881e856e51310b262d0cbf /heimdall/source/EndModemFileTransferPacket.h | |
parent | ee02a9c7c51d069de26f04d8d9464d573ed82d22 (diff) | |
download | external_heimdall-713af23d0a8a65926e03ad2e50406aae2463e6e1.zip external_heimdall-713af23d0a8a65926e03ad2e50406aae2463e6e1.tar.gz external_heimdall-713af23d0a8a65926e03ad2e50406aae2463e6e1.tar.bz2 |
Replaced some extremely weird code that I came up with during the initial
reverse engineering of the flashing protocol. Turns out all I needed to do
was send the sequence size in bytes rather than performing weird
calculations (which when packed) end up representing the same thing!
Diffstat (limited to 'heimdall/source/EndModemFileTransferPacket.h')
-rw-r--r-- | heimdall/source/EndModemFileTransferPacket.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/heimdall/source/EndModemFileTransferPacket.h b/heimdall/source/EndModemFileTransferPacket.h index a2d88ca..e21ad20 100644 --- a/heimdall/source/EndModemFileTransferPacket.h +++ b/heimdall/source/EndModemFileTransferPacket.h @@ -34,10 +34,8 @@ namespace Heimdall public:
- EndModemFileTransferPacket(unsigned int partialPacketLength, unsigned int lastFullPacketIndex, unsigned short unknown1,
- unsigned int partitionType, bool endOfFile)
- : EndFileTransferPacket(EndFileTransferPacket::kDestinationModem, partialPacketLength,
- lastFullPacketIndex, unknown1, partitionType)
+ EndModemFileTransferPacket(unsigned int sequenceByteCount, unsigned int unknown1, unsigned int partitionType, bool endOfFile)
+ : EndFileTransferPacket(EndFileTransferPacket::kDestinationModem, sequenceByteCount, unknown1, partitionType)
{
this->endOfFile = (endOfFile) ? 1 : 0;
}
|