mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
First of several changes needed to support multiple USB host root hubs
This commit is contained in:
@@ -109,7 +109,7 @@ static int usbhost_waiter(int argc, char *argv[])
|
||||
{
|
||||
/* Wait for the device to change state */
|
||||
|
||||
ret = DRVR_WAIT(g_drvr, connected);
|
||||
ret = DRVR_WAIT(g_drvr, &connected);
|
||||
DEBUGASSERT(ret == OK);
|
||||
|
||||
connected = !connected;
|
||||
@@ -121,7 +121,7 @@ static int usbhost_waiter(int argc, char *argv[])
|
||||
{
|
||||
/* Yes.. enumerate the newly connected device */
|
||||
|
||||
(void)DRVR_ENUMERATE(g_drvr);
|
||||
(void)DRVR_ENUMERATE(g_drvr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user