Examples: Improvements to xusb's support for Microsoft OS descriptors
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 27 Dec 2017 00:37:22 +0000 (16:37 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 27 Dec 2017 00:37:22 +0000 (16:37 -0800)
commitd8c1f7caa9f00496097037adc266bcdfbe866bda
tree37e392f32430e564675c0bc1a84149cf6ce57cd1
parentba86d27dca584db96378936a4d54c87c7b0bbfba
Examples: Improvements to xusb's support for Microsoft OS descriptors

As noted in issue #269, the current xusb implementation does not handle
Microsoft OS descriptors from devices whose vendor code is greater than
0x7F. This commit addresses this limitation by using
libusb_get_string_descriptor() instead of the ASCII variant and parsing
the descriptor separately. Note that this issue was addressed in PR #276,
but that approach was too cryptic to read.

Closes #269, Closes #276

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
examples/xusb.c
libusb/version_nano.h