From b45e10a391cd4079d50c184db95ce061c1405eda Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Wed, 26 Aug 2015 07:26:17 +0200 Subject: 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 --- src/usbh_hubbed.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/usbh_hubbed.c b/src/usbh_hubbed.c index 833e5a3..7391232 100644 --- a/src/usbh_hubbed.c +++ b/src/usbh_hubbed.c @@ -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; -- cgit