summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-08-26 07:26:17 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-08-26 07:46:00 +0200
commitb45e10a391cd4079d50c184db95ce061c1405eda (patch)
treef5a4b155bce302f69d3cd9759e73d6941ab9186f /src
parenteb80e438189961ba61b0250490ec73a7e439dcc6 (diff)
downloadsecure-hid-b45e10a391cd4079d50c184db95ce061c1405eda.tar.gz
secure-hid-b45e10a391cd4079d50c184db95ce061c1405eda.tar.bz2
secure-hid-b45e10a391cd4079d50c184db95ce061c1405eda.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/usbh_hubbed.c1
1 files changed, 1 insertions, 0 deletions
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;