aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/BridgeManager.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2014-04-30 03:49:19 +1000
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2014-05-06 21:39:05 +1000
commit1e345bcd7c6a82bbf0800781416d5df15b555da0 (patch)
tree6b514985d730ad52356df41c7e6b85dc177800ea /heimdall/source/BridgeManager.h
parenta934ad26086ef44563ef7813608e310c0f2dee08 (diff)
downloadexternal_heimdall-1e345bcd7c6a82bbf0800781416d5df15b555da0.zip
external_heimdall-1e345bcd7c6a82bbf0800781416d5df15b555da0.tar.gz
external_heimdall-1e345bcd7c6a82bbf0800781416d5df15b555da0.tar.bz2
Fix support for SGS4 (with empty bulk transfers)
After each bulk transfer sent containing an Odin/Loke protocol packet, we now send through a zero length bulk transfer. This is required for newer devices to function correctly.
Diffstat (limited to 'heimdall/source/BridgeManager.h')
-rw-r--r--heimdall/source/BridgeManager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/heimdall/source/BridgeManager.h b/heimdall/source/BridgeManager.h
index 1f88cdc..6481de6 100644
--- a/heimdall/source/BridgeManager.h
+++ b/heimdall/source/BridgeManager.h
@@ -142,6 +142,8 @@ namespace Heimdall
bool SetControlLineState(unsigned short controlSignalFlags);
bool SetControlLineCoding(LineCoding lineCoding);
+ bool SendBulkTransfer(unsigned char *data, int length, int timeout = 3000, bool retry = true) const;
+
public:
BridgeManager(bool verbose, int communicationDelay = BridgeManager::kCommunicationDelayDefault);