aboutsummaryrefslogtreecommitdiff
path: root/upgrade/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade/main.c')
-rw-r--r--upgrade/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/upgrade/main.c b/upgrade/main.c
index dd92a2e..38fa575 100644
--- a/upgrade/main.c
+++ b/upgrade/main.c
@@ -18,8 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
-#include <usb.h>
#include <string.h>
+#ifdef WIN32
+# include <lusb0_usb.h>
+#else
+# include <usb.h>
+#endif
#include <assert.h>
@@ -70,14 +74,12 @@ struct usb_device * find_dev(void)
if (((dev->descriptor.idProduct == 0x5740) ||
(dev->descriptor.idProduct == 0x6018)) &&
- !strcmp(man, "Black Sphere Technologies") &&
- !strcmp(prod, "Black Magic Firmware Upgrade"))
+ !strcmp(man, "Black Sphere Technologies"))
return dev;
if (((dev->descriptor.idProduct == 0xDF11) ||
(dev->descriptor.idProduct == 0x6017)) &&
- !strcmp(man, "Black Sphere Technologies") &&
- !strcmp(prod, "Black Magic Probe (Upgrade)"))
+ !strcmp(man, "Black Sphere Technologies"))
return dev;
}
}