summaryrefslogtreecommitdiffstats
path: root/heimdall/source/BridgeManager.cpp
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2012-03-29 15:50:27 +0200
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2012-03-29 15:50:27 +0200
commit907c942fd12ff204a387f5cc0a7f3de079186100 (patch)
tree5dfad7a827b3ceff16f775a5d10f72207d0b8007 /heimdall/source/BridgeManager.cpp
parentReplaced some extremely weird code that I came up with during the initial (diff)
downloadHeimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar.gz
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar.bz2
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar.lz
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar.xz
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.tar.zst
Heimdall-907c942fd12ff204a387f5cc0a7f3de079186100.zip
Diffstat (limited to '')
-rw-r--r--heimdall/source/BridgeManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/heimdall/source/BridgeManager.cpp b/heimdall/source/BridgeManager.cpp
index b58ffe9..439e41a 100644
--- a/heimdall/source/BridgeManager.cpp
+++ b/heimdall/source/BridgeManager.cpp
@@ -921,7 +921,7 @@ int BridgeManager::ReceivePitFile(unsigned char **pitBuffer) const
return (fileSize);
}
-bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int partitionType, unsigned int fileIdentifier) const
+bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int chipIdentifier, unsigned int fileIdentifier) const
{
if (destination != EndFileTransferPacket::kDestinationModem && destination != EndFileTransferPacket::kDestinationPhone)
{
@@ -1123,7 +1123,7 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int
if (destination == EndFileTransferPacket::kDestinationPhone)
{
- EndPhoneFileTransferPacket *endPhoneFileTransferPacket = new EndPhoneFileTransferPacket(sequenceByteCount, 0, partitionType,
+ EndPhoneFileTransferPacket *endPhoneFileTransferPacket = new EndPhoneFileTransferPacket(sequenceByteCount, 0, chipIdentifier,
fileIdentifier, isLastSequence);
success = SendPacket(endPhoneFileTransferPacket, 3000);
@@ -1138,7 +1138,7 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int
}
else // destination == EndFileTransferPacket::kDestinationModem
{
- EndModemFileTransferPacket *endModemFileTransferPacket = new EndModemFileTransferPacket(sequenceByteCount, 0, partitionType, isLastSequence);
+ EndModemFileTransferPacket *endModemFileTransferPacket = new EndModemFileTransferPacket(sequenceByteCount, 0, chipIdentifier, isLastSequence);
success = SendPacket(endModemFileTransferPacket, 3000);
delete endModemFileTransferPacket;