diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-05-31 12:05:02 +1000 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-05-31 12:09:33 +1000 |
commit | 7d6ddcd5d54e30e7437f0ba1aa4676224e68bf6a (patch) | |
tree | e93979d3945f78d07ae357ea97a2ad7ac2c2f045 /heimdall/source/BridgeManager.h | |
parent | 7e29d7ef9acb2378d5ec10dc44b1525c52432fbc (diff) | |
download | external_heimdall-7d6ddcd5d54e30e7437f0ba1aa4676224e68bf6a.zip external_heimdall-7d6ddcd5d54e30e7437f0ba1aa4676224e68bf6a.tar.gz external_heimdall-7d6ddcd5d54e30e7437f0ba1aa4676224e68bf6a.tar.bz2 |
Give devices some leeway to handle empty bulk transfers.
Diffstat (limited to 'heimdall/source/BridgeManager.h')
-rw-r--r-- | heimdall/source/BridgeManager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/heimdall/source/BridgeManager.h b/heimdall/source/BridgeManager.h index 7028003..e85dc87 100644 --- a/heimdall/source/BridgeManager.h +++ b/heimdall/source/BridgeManager.h @@ -81,7 +81,8 @@ namespace Heimdall enum
{
kDefaultTimeoutSend = 3000,
- kDefaultTimeoutReceive = 3000
+ kDefaultTimeoutReceive = 3000,
+ kDefaultTimeoutSendEmptyTransfer = 100
};
enum class UsbLogLevel
@@ -139,7 +140,7 @@ namespace Heimdall bool InitialiseProtocol(void);
- bool SendBulkTransfer(unsigned char *data, int length, int timeout) const;
+ bool SendBulkTransfer(unsigned char *data, int length, int timeout, bool retry = true) const;
public:
|