X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fusb.c;fp=src%2Fusb.c;h=02510caed4edca7293410788156521d35be81e61;hb=e4ce146fefe7cfd475b9d8fdec1101b188b746db;hp=ba56e864c12ccf64260e5d824f01655b24db78aa;hpb=d79244dc342ae5cc3f402145cc510fd7b030cc1e;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; }