提交 b91271d4 编写于 作者: qiuyiuestc's avatar qiuyiuestc

Merge pull request #14 from heyuanjie87/ForPullRequest

fixed the string descriptor send to host more than actual
...@@ -124,7 +124,7 @@ static rt_err_t _get_string_descriptor(struct udevice* device, ureq_t setup) ...@@ -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; len = str_desc.bLength;
else else
len = setup->length; len = setup->length;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册