mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Set USB address to avoid a failed assertion
This commit is contained in:
committed by
Gregory Nutt
parent
f61a14454d
commit
829de7d5bd
@@ -2888,6 +2888,7 @@ static void stm32_gint_disconnected(FAR struct stm32_usbhost_s *priv)
|
||||
stm32_chan_freeall(priv);
|
||||
|
||||
priv->rhport.hport.speed = USB_SPEED_FULL;
|
||||
priv->rhport.hport.funcaddr = 0;
|
||||
|
||||
/* Notify any waiters that there is a change in the connection state */
|
||||
|
||||
|
||||
@@ -2888,6 +2888,7 @@ static void stm32_gint_disconnected(FAR struct stm32_usbhost_s *priv)
|
||||
stm32_chan_freeall(priv);
|
||||
|
||||
priv->rhport.hport.speed = USB_SPEED_FULL;
|
||||
priv->rhport.hport.funcaddr = 0;
|
||||
|
||||
/* Notify any waiters that there is a change in the connection state */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user