diff --git a/configs/olimex-lpc1766stk/src/up_nsh.c b/configs/olimex-lpc1766stk/src/up_nsh.c index 2d7e2753ea5..62b470400a5 100755 --- a/configs/olimex-lpc1766stk/src/up_nsh.c +++ b/configs/olimex-lpc1766stk/src/up_nsh.c @@ -161,13 +161,16 @@ static int nsh_waiter(int argc, char *argv[]) bool connected = false; int ret; + message("nsh_waiter: Running\n"); for (;;) { /* Wait for the device to change state */ ret = DRVR_WAIT(g_drvr, connected); DEBUGASSERT(ret == OK); + connected = !connected; + message("nsh_waiter: %s\n", connected ? "connected" : "disconnected"); /* Did we just become connected? */ @@ -265,6 +268,8 @@ static int nsh_usbhostinitialize(void) { /* Start a thread to handle device connection. */ + message("nsh_usbhostinitialize: Start nsh_waiter\n"); + #ifndef CONFIG_CUSTOM_STACK pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO, CONFIG_USBHOST_STACKSIZE,