diff options
author | Robert Craig <rpcraig@tycho.ncsc.mil> | 2013-10-30 10:30:26 -0400 |
---|---|---|
committer | Robert Craig <rpcraig@tycho.ncsc.mil> | 2013-11-06 10:00:33 -0500 |
commit | 5cd4141c980bfd516ba2843afa2c2a8348d5613a (patch) | |
tree | 96ea1c5530c632b2e8d43e8ce26b79aa0afc62e9 /heimdall | |
parent | f95619028fa5c80284e6ade2ced7772e41040424 (diff) | |
download | external_heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.zip external_heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.gz external_heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.bz2 |
Fix error condition check on finding correct usb interface.
Diffstat (limited to 'heimdall')
-rw-r--r-- | heimdall/source/BridgeManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall/source/BridgeManager.cpp b/heimdall/source/BridgeManager.cpp index ed12b87..d21ea60 100644 --- a/heimdall/source/BridgeManager.cpp +++ b/heimdall/source/BridgeManager.cpp @@ -232,7 +232,7 @@ int BridgeManager::FindDeviceInterface(void) libusb_free_config_descriptor(configDescriptor); - if (result != LIBUSB_SUCCESS) + if (interfaceIndex < 0) { Interface::PrintError("Failed to find correct interface configuration\n"); return (BridgeManager::kInitialiseFailed); |