Skip to content

Commit f1abff8

Browse files
authored
Merge branch 'viveris:master' into master
2 parents 8db7e88 + 9948c51 commit f1abff8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/usb_gadget.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,14 @@ void fill_ep_descriptor(mtp_ctx * ctx, usb_gadget * usbctx,struct usb_endpoint_d
223223
if(flags & EP_BULK_MODE)
224224
{
225225
desc->bmAttributes = USB_ENDPOINT_XFER_BULK;
226-
desc->wMaxPacketSize = flags & EP_SS_MODE ? 1024 : 512;
226+
227+
desc->wMaxPacketSize = 64;
228+
229+
if( flags & EP_HS_MODE )
230+
desc->wMaxPacketSize = 512;
231+
232+
if( flags & EP_SS_MODE )
233+
desc->wMaxPacketSize = 1024;
227234
}
228235
else
229236
{

0 commit comments

Comments
 (0)