aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2013-05-05 20:57:50 +1000
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2013-05-05 20:57:50 +1000
commit8301663c99ee5cabeb26e20b176fe96fe8c6683e (patch)
tree998df374b7536750b077ff2b5d0e0e39644bddff
parent55d6c9551e13b108947410d7bf50b6ba2c01b633 (diff)
downloadexternal_heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.zip
external_heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.gz
external_heimdall-8301663c99ee5cabeb26e20b176fe96fe8c6683e.tar.bz2
Minor command line output changes - No functional changes.
-rw-r--r--heimdall/source/BridgeManager.cpp20
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)