summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-12 17:06:05 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-12 17:06:05 +0000
commit04e0441914eeb25e042189679b55c9577fc96d2a (patch)
tree5e3c4b05426d402e862b0d6bdf5413f112202f60
parent9c00f1d5e23f46f651c6e219afa53c676de8ded8 (diff)
- we now have two interfaces in the USB device
git-svn-id: https://svn.openpcd.org:2342/trunk@190 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/opcd_test/opcd_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpcd/opcd_test/opcd_usb.c b/openpcd/opcd_test/opcd_usb.c
index 00ee3d2..d73289d 100644
--- a/openpcd/opcd_test/opcd_usb.c
+++ b/openpcd/opcd_test/opcd_usb.c
@@ -68,7 +68,7 @@ static struct usb_device *find_opcd_handle(void)
&& dev->descriptor.iManufacturer == 0
&& dev->descriptor.iProduct == 0
&& dev->descriptor.bNumConfigurations == 1
- && dev->config->bNumInterfaces == 1
+ && dev->config->bNumInterfaces == 2
&& dev->config->iConfiguration == 0)
return dev;
}
@@ -157,7 +157,7 @@ int opcd_recv_reply(struct opcd_handle *od, char *buf, int len)
int ret;
memset(buf, 0, sizeof(buf));
- ret = ausb_bulk_read(od->hdl, OPCD_IN_EP, buf, len, 1000);
+ ret = ausb_bulk_read(od->hdl, OPCD_IN_EP, buf, len, 100000);
if (ret < 0) {
fprintf(stderr, "bulk_read returns %d(%s)\n", ret,
personal git repositories of Harald Welte. Your mileage may vary