diff options
author | Harry Mallon <hjmallon@gmail.com> | 2019-02-07 15:02:59 +0000 |
---|---|---|
committer | Nathan Hjelm <hjelmn@me.com> | 2019-04-04 22:39:07 -0600 |
commit | 7997e322ab4b15661355ca3bab30366922709177 (patch) | |
tree | dc0bfa070783dfd36455393f53060cfb7b54c02c | |
parent | 133bbda6946fa4fdfdfcc879d6b0700cfec02e30 (diff) | |
download | libusb-7997e322ab4b15661355ca3bab30366922709177.tar.gz |
xusb: Report SuperSpeedPlus
Closes #530
Signed-off-by: Nathan Hjelm <hjelmn@me.com>
-rw-r--r-- | examples/xusb.c | 6 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index 966d8c1..a1d9f4a 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -810,8 +810,8 @@ static int test_device(uint16_t vid, uint16_t pid) int i, j, k, r; int iface, nb_ifaces, first_iface = -1; struct libusb_device_descriptor dev_desc; - const char* const speed_name[5] = { "Unknown", "1.5 Mbit/s (USB LowSpeed)", "12 Mbit/s (USB FullSpeed)", - "480 Mbit/s (USB HighSpeed)", "5000 Mbit/s (USB SuperSpeed)" }; + const char* const speed_name[6] = { "Unknown", "1.5 Mbit/s (USB LowSpeed)", "12 Mbit/s (USB FullSpeed)", + "480 Mbit/s (USB HighSpeed)", "5000 Mbit/s (USB SuperSpeed)", "10000 Mbit/s (USB SuperSpeedPlus)" }; char string[128]; uint8_t string_index[3]; // indexes of the string descriptors uint8_t endpoint_in = 0, endpoint_out = 0; // default IN and OUT endpoints @@ -838,7 +838,7 @@ static int test_device(uint16_t vid, uint16_t pid) printf(" (from root hub)\n"); } r = libusb_get_device_speed(dev); - if ((r<0) || (r>4)) r=0; + if ((r<0) || (r>5)) r=0; printf(" speed: %s\n", speed_name[r]); } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index e38dc22..ae13822 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11360 +#define LIBUSB_NANO 11361 |