From 04e0441914eeb25e042189679b55c9577fc96d2a Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Tue, 12 Sep 2006 17:06:05 +0000 Subject: - we now have two interfaces in the USB device git-svn-id: https://svn.openpcd.org:2342/trunk@190 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/opcd_test/opcd_usb.c | 4 ++-- 1 file 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, -- cgit v1.2.3