]> sigrok.org Git - libsigrok.git/blobdiff - src/usb.c
sr_usb_find(): Increase the 'bus' limit to 255.
[libsigrok.git] / src / usb.c
index ba56e864c12ccf64260e5d824f01655b24db78aa..02510caed4edca7293410788156521d35be81e61 100644 (file)
--- a/src/usb.c
+++ b/src/usb.c
@@ -359,7 +359,7 @@ SR_PRIV GSList *sr_usb_find(libusb_context *usb_ctx, const char *conn)
                return NULL;
        }
 
-       if (bus > 64) {
+       if (bus > 255) {
                sr_err("Invalid bus specified: %d.", bus);
                return NULL;
        }