diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-06 20:21:57 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-06 20:21:57 +0000 |
commit | 2cb26d0787b41ae1dc7607ef11ac11047491d7dc (patch) | |
tree | 0bfa100d6337879837dd6abf9612a0a7f889129b /apps/nshlib/nsh_consolemain.c | |
parent | 829c1351e2be18265cd8ea8c481eec674192a6d5 (diff) | |
download | nuttx-2cb26d0787b41ae1dc7607ef11ac11047491d7dc.tar.gz nuttx-2cb26d0787b41ae1dc7607ef11ac11047491d7dc.tar.bz2 nuttx-2cb26d0787b41ae1dc7607ef11ac11047491d7dc.zip |
Add support for use of a USB serial device to provide NSH console I/O. Verified on the Sure PIPIC32MX board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4458 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh_consolemain.c')
-rw-r--r-- | apps/nshlib/nsh_consolemain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_consolemain.c b/apps/nshlib/nsh_consolemain.c index 372ef5a1f..36ffdab8f 100644 --- a/apps/nshlib/nsh_consolemain.c +++ b/apps/nshlib/nsh_consolemain.c @@ -105,7 +105,8 @@ int nsh_consolemain(int argc, char *argv[]) */ #ifdef HAVE_USB_CONSOLE - DEBUGASSERT(nsh_usbconsole() == OK); + ret = nsh_usbconsole(); + DEBUGASSERT(ret == OK); #endif /* Present a greeting */ |