mirror of
https://github.com/apache/nuttx.git
synced 2026-10-19 20:58:54 +00: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:
parent
8520a40866
commit
9f19a333d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue