Skip to content
Commit 1784446c authored by Tomasz Moń's avatar Tomasz Moń Committed by Fabio Baltieri
Browse files

usb: device_next: Fix string descriptors response



Commit 2f31ee63 ("usb: device_next: convert ASCII7 strings to
UTF16LE on the fly") made string descriptors respond with twice as much
of the actual string data.

Fix the issue by taking into account that USB string descriptor length
is already multiplied by two. Additionally, make it possible to return
odd number of bytes if host requested so.

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent 3ad57e30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment