diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | uhubctl.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ This utility was tested to compile and work on Linux It should be possible to compile it for Windows as well - please report if you succeed in doing that. -First, you need to install library libusb-1.0 (version 1.0.16 or later): +First, you need to install library libusb-1.0 (version 1.0.12 or later): * Ubuntu: sudo apt-get install libusb-1.0-0-dev * Redhat: sudo yum install libusb1-devel @@ -331,7 +331,7 @@ static int usb_find_hubs() int bus = libusb_get_bus_number(dev); sprintf(hubs[hub_count].location, "%d", bus); - int pcount = libusb_get_port_numbers(dev, port_numbers, MAX_HUB_CHAIN); + int pcount = libusb_get_port_path(NULL, dev, port_numbers, MAX_HUB_CHAIN); int k; for (k=0; k<pcount; k++) { char s[8]; |