summaryrefslogtreecommitdiffstats
path: root/utils/jz4740_tools/jz4740_usbtool.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-12 16:55:59 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-12 16:55:59 +0000
commit72bc4e30e2448c324bc19a204af4d30752604595 (patch)
treeb907b846445a32a229c436786f0f906729fc59dd /utils/jz4740_tools/jz4740_usbtool.c
parentd89f400c21a129a3daee8b1541d8f97c74f629fa (diff)
downloadrockbox-72bc4e30e2448c324bc19a204af4d30752604595.tar.gz
rockbox-72bc4e30e2448c324bc19a204af4d30752604595.tar.bz2
rockbox-72bc4e30e2448c324bc19a204af4d30752604595.zip
Jz4740 tools:
* Add HXF2IHFS by William Poetra Yoga Hadisoeseno * Don't do usb_set_configuration() calls on Linux in USB tool git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/jz4740_tools/jz4740_usbtool.c')
-rw-r--r--utils/jz4740_tools/jz4740_usbtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/jz4740_tools/jz4740_usbtool.c b/utils/jz4740_tools/jz4740_usbtool.c
index 14fed4c878..5667579f57 100644
--- a/utils/jz4740_tools/jz4740_usbtool.c
+++ b/utils/jz4740_tools/jz4740_usbtool.c
@@ -561,6 +561,8 @@ found:
return -5;
}
+/* usb_set_configuration() calls are already done in Linux */
+#ifdef _WIN32
err = usb_set_configuration(dh, 1);
if (err < 0)
@@ -569,6 +571,7 @@ found:
usb_close(dh);
return -6;
}
+#endif
/* "must be called" written in the libusb documentation */
err = usb_claim_interface(dh, 0);