This is an automated email from the ASF dual-hosted git repository. raiden00 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9f19a333d236f2be338e3e658c6df2ee197c5275 Author: sunkun3 <[email protected]> AuthorDate: Tue May 30 19:48:56 2023 +0800 usbdev/cdcacm: Logic error handled in USB_REQ_SETINTERFACE. config value changed after resetconfig was executed endpoint will stay disable state after setinterface cmd Signed-off-by: sunkun3 <[email protected]> --- drivers/usbdev/cdcacm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c index cfff2f14c4..d46c0d7929 100644 --- a/drivers/usbdev/cdcacm.c +++ b/drivers/usbdev/cdcacm.c @@ -1720,7 +1720,7 @@ static int cdcacm_setup(FAR struct usbdevclass_driver_s *driver, value == CDCACM_DATAALTIFID)) { cdcacm_resetconfig(priv); - cdcacm_setconfig(priv, priv->config); + cdcacm_setconfig(priv, CDCACM_CONFIGID); ret = 0; } }
