mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
endpoint address was only set in fs descriptor, but we need it in hs too. Update storage device descriptor dynamic based on dcd
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14507 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ecd9716bd
commit
17f2dd5c13
4 changed files with 18 additions and 6 deletions
|
|
@ -201,6 +201,10 @@ int usb_serial_driver_bind(void* controler_ops)
|
|||
serial_debug_desc.bDebugInEndpoint = dev.in->ep_num;
|
||||
serial_debug_desc.bDebugOutEndpoint = dev.out->ep_num;
|
||||
|
||||
/* update hs descriptors as we asume that endpoints are the same for fs and hs */
|
||||
serial_hs_in_desc.bEndpointAddress = serial_fs_in_desc.bEndpointAddress;
|
||||
serial_hs_out_desc.bEndpointAddress = serial_fs_out_desc.bEndpointAddress;
|
||||
|
||||
return 0;
|
||||
|
||||
autoconf_fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue