mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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 <sunkun3@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user