commit | 169742e2dbde46efeccc93378960c0344da8c99c | [log] [tgz] |
---|---|---|
author | Andrew Chant <[email protected]> | Thu Dec 07 16:51:49 2017 -0800 |
committer | Andrew Chant <[email protected]> | Mon Dec 18 11:36:46 2017 -0800 |
tree | 3c50c6c496129d5fb3661c68cd323055244ea89f | |
parent | 588f5ba383147c742f7ae001f5861a343798727c [diff] |
usblib: usb_device_get_string decoding fixes. usb_device_get_string converts incoming ucs-2 text to ascii by truncating the upper byte of each character. This is error prone. This patch introduces usb_device_get_string_ucs2 to access raw USB string descriptors, as well as changes usb_device_get_string to replace any non ascii character with '?'. Bug: 70163357 Change-Id: If8f98fee4be6ea75dc0f7ce7beba7fd7b6aabf88 Test: Connected & disconnected a NuForceDAC.