commit | 1784446c8d07150f55b0badf539af37d9e2b847d | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Tue May 21 14:20:46 2024 +0200 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Mon May 27 14:04:26 2024 +0100 |
tree | 1c5bbe7d561a2b73b328a71cc22f3a69f41ba4bc | |
parent | 3ad57e30301a4b6e3475da5bd1d6f1e7682287bb [diff] |
usb: device_next: Fix string descriptors response Commit 2f31ee63b5c5 ("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: Tomasz Moń <tomasz.mon@nordicsemi.no>