diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2013-05-05 12:57:50 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2013-05-05 12:57:50 +0200 |
commit | 8301663c99ee5cabeb26e20b176fe96fe8c6683e (patch) | |
tree | 998df374b7536750b077ff2b5d0e0e39644bddff /heimdall/source | |
parent | Fixed two major bugs in libpit related functionality: (diff) | |
download | Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.gz Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.bz2 Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.lz Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.xz Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.zst Heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.zip |
Diffstat (limited to 'heimdall/source')
-rw-r--r-- | heimdall/source/BridgeManager.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/heimdall/source/BridgeManager.cpp b/heimdall/source/BridgeManager.cpp index 8f1b32e..1ab46ae 100644 --- a/heimdall/source/BridgeManager.cpp +++ b/heimdall/source/BridgeManager.cpp @@ -624,11 +624,11 @@ bool BridgeManager::BeginSession(void) unsigned int deviceDefaultPacketSize = beginSessionResponse.GetResult(); + Interface::Print("\nSome devices may take up to 2 minutes to respond.\nPlease be patient!\n\n"); + Sleep(3000); // Give the user time to read the message. + if (deviceDefaultPacketSize != 0) // 0 means changing the packet size is not supported. { - Interface::Print("\nThis device may take up to 2 minutes to respond.\nPlease be patient!\n\n"); - Sleep(2000); // Give the user time to read the message. - fileTransferSequenceTimeout = 120000; // 2 minutes! fileTransferPacketSize = 1048576; // 1 MiB fileTransferSequenceMaxLength = 100; // 100 MiB per sequence. Which is the same as the default of 800 * 131072. @@ -1218,13 +1218,6 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int success = ReceivePacket(sendFilePartResponse); int receivedPartIndex = sendFilePartResponse->GetPartIndex(); - if (verbose) - { - const unsigned char *data = sendFilePartResponse->GetData(); - Interface::Print("File Part #%d... Response: %X %X %X %X %X %X %X %X \n", filePartIndex, - data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]); - } - delete sendFilePartResponse; if (!success) @@ -1254,13 +1247,6 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int success = ReceivePacket(sendFilePartResponse); unsigned int receivedPartIndex = sendFilePartResponse->GetPartIndex(); - if (verbose) - { - const unsigned char *data = sendFilePartResponse->GetData(); - Interface::Print("File Part #%d... Response: %X %X %X %X %X %X %X %X \n", filePartIndex, - data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]); - } - delete sendFilePartResponse; if (receivedPartIndex != filePartIndex) |