mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
CDC/ACM and PL2303 device drivers: Don't use the max packet size assigned to an endpoint in order to determine the request buffer size. The endpoint has not yet been configured that max packet size may be wrong.
This commit is contained in:
@@ -140,7 +140,11 @@
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_CDCACM_BULKIN_REQLEN
|
||||
# define CONFIG_CDCACM_BULKIN_REQLEN 96
|
||||
# ifdef CONFIG_USBDEV_DUALSPEED
|
||||
# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2)
|
||||
# else
|
||||
# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Endpoint number and size (in bytes) of the CDC host-to-device (OUT) data
|
||||
|
||||
Reference in New Issue
Block a user