From: Joel Holdsworth Date: Sun, 4 Mar 2012 18:02:44 +0000 (+0000) Subject: fx2lafw: Corrected check_conf_profile checks X-Git-Tag: libsigrok-0.1.0~55 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=9031ce63f3cee037ffc3e565cf324cafe38522f5;p=libsigrok.git fx2lafw: Corrected check_conf_profile checks --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index cb9963f5..359df017 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -117,18 +117,13 @@ static gboolean check_conf_profile(libusb_device *dev) break; intf_dsc = &(conf_dsc->interface[0].altsetting[0]); - if (intf_dsc->bNumEndpoints != 3) - /* Need exactly 3 end points. */ + if (intf_dsc->bNumEndpoints != 2) + /* Need exactly 2 end points. */ break; if ((intf_dsc->endpoint[0].bEndpointAddress & 0x8f) != - (1 | LIBUSB_ENDPOINT_OUT)) - /* The first endpoint should be 1 (outbound). */ - break; - - if ((intf_dsc->endpoint[1].bEndpointAddress & 0x8f) != - (2 | LIBUSB_ENDPOINT_IN)) - /* The second endpoint should be 2 (inbound). */ + (2 | LIBUSB_ENDPOINT_IN)) // 0x82 + /* The first endpoint should be 2 (inbound). */ break; /* TODO: Check the debug channel... */