Fix USB host polling; fix a typo in LPC17 HCD
This commit is contained in:
parent
be2ed7eba7
commit
215dad9984
@ -1776,7 +1776,7 @@ static int lpc17_rh_enumerate(struct usbhost_connection_s *conn,
|
||||
struct usbhost_hubport_s *hport)
|
||||
{
|
||||
struct lpc17_usbhost_s *priv = (struct lpc17_usbhost_s *)&g_usbhost;
|
||||
DEBUGASSERT(conn != NULL && hport != NULL &&& hport->port == 0);
|
||||
DEBUGASSERT(conn != NULL && hport != NULL && hport->port == 0);
|
||||
|
||||
/* Are we connected to a device? The caller should have called the wait()
|
||||
* method first to be assured that a device is connected.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* config/olimex-lpc1766stk/src/lpc17_nsh.c
|
||||
*
|
||||
* Copyright (C) 2010, 2013-2014 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2010, 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -149,7 +149,7 @@ static int nsh_waiter(int argc, char *argv[])
|
||||
/* Wait for the device to change state */
|
||||
|
||||
DEBUGVERIFY(CONN_WAIT(g_usbconn, &hport));
|
||||
syslog(LOG_INFO, "%s\n", hport->connected ? "connected" : "disconnected");
|
||||
syslog(LOG_INFO, "nsh_waiter: %s\n", hport->connected ? "connected" : "disconnected");
|
||||
|
||||
/* Did we just become connected? */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user