Set USB address to avoid a failed assertion

This commit is contained in:
Pierre-noel Bouteville 2016-09-15 08:36:45 -06:00 committed by Gregory Nutt
parent f61a14454d
commit 829de7d5bd
2 changed files with 2 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */