usbh_hubbed: set packet_size_max0 field also when DT_DEVICE returns OK
packet_size_max0 was set only if it was 8. It was not working for 16 or 32. Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
eb80e43818
commit
b45e10a391
1 changed files with 1 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ static void device_enumerate(usbh_device_t *dev, usbh_packet_callback_data_t cb_
|
|||
{
|
||||
struct usb_device_descriptor *ddt =
|
||||
(struct usb_device_descriptor *)&usbh_buffer[0];
|
||||
dev->packet_size_max0 = ddt->bMaxPacketSize0;
|
||||
struct usb_setup_data setup_data;
|
||||
|
||||
setup_data.bmRequestType = 0b10000000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue