X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fusb.c;h=02510caed4edca7293410788156521d35be81e61;hb=be64f90b53d09d9720dc6e06ff8ab61d96c03932;hp=ba56e864c12ccf64260e5d824f01655b24db78aa;hpb=b98b70222fd756784e7bb55a4d3356e0e3405679;p=libsigrok.git diff --git a/src/usb.c b/src/usb.c index ba56e864..02510cae 100644 --- 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; }