aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/EndPhoneFileTransferPacket.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2012-03-29 01:34:31 +1100
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2012-03-29 10:17:05 +1100
commit713af23d0a8a65926e03ad2e50406aae2463e6e1 (patch)
treede05850788b7a16ffe881e856e51310b262d0cbf /heimdall/source/EndPhoneFileTransferPacket.h
parentee02a9c7c51d069de26f04d8d9464d573ed82d22 (diff)
downloadexternal_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/EndPhoneFileTransferPacket.h')
-rw-r--r--heimdall/source/EndPhoneFileTransferPacket.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/heimdall/source/EndPhoneFileTransferPacket.h b/heimdall/source/EndPhoneFileTransferPacket.h
index f035511..606bcd0 100644
--- a/heimdall/source/EndPhoneFileTransferPacket.h
+++ b/heimdall/source/EndPhoneFileTransferPacket.h
@@ -57,10 +57,9 @@ namespace Heimdall
public:
- EndPhoneFileTransferPacket(unsigned int partialPacketLength, unsigned int lastFullPacketIndex, unsigned short unknown1,
- unsigned int partitionType, unsigned int fileIdentifier, bool endOfFile)
- : EndFileTransferPacket(EndFileTransferPacket::kDestinationPhone, partialPacketLength,
- lastFullPacketIndex, unknown1, partitionType)
+ EndPhoneFileTransferPacket(unsigned int sequenceByteCount, unsigned int unknown1, unsigned int partitionType,
+ unsigned int fileIdentifier, bool endOfFile)
+ : EndFileTransferPacket(EndFileTransferPacket::kDestinationPhone, sequenceByteCount, unknown1, partitionType)
{
this->fileIdentifier = fileIdentifier;
this->endOfFile = (endOfFile) ? 1 : 0;