mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
Merge pull request #14 from heyuanjie87/ForPullRequest
fixed the string descriptor send to host more than actual
This commit is contained in:
@@ -124,7 +124,7 @@ static rt_err_t _get_string_descriptor(struct udevice* device, ureq_t setup)
|
||||
}
|
||||
}
|
||||
|
||||
if(setup->length == 0xFF)
|
||||
if(setup->length > len)
|
||||
len = str_desc.bLength;
|
||||
else
|
||||
len = setup->length;
|
||||
|
||||
Reference in New Issue
Block a user