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/EndModemFileTransferPacket.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'heimdall/source/EndModemFileTransferPacket.h') 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; } -- cgit v1.1