From 713af23d0a8a65926e03ad2e50406aae2463e6e1 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Thu, 29 Mar 2012 01:34:31 +1100 Subject: 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! --- heimdall/source/EndPhoneFileTransferPacket.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'heimdall/source/EndPhoneFileTransferPacket.h') 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; -- cgit v1.2.3