fixed the string descriptor send to host more than actual
This commit is contained in:
parent
a3bde3c4a3
commit
7ce0547575
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue