diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-01 19:47:12 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-01 19:47:12 +0000 |
commit | 2a2655f8e0dc040d62c3c6d19bc298fc0ebb3f64 (patch) | |
tree | 9b5b0a7b3d6180141c3f9d959b6c04647e4a6810 /apps/nshlib | |
parent | 6a4e8b32b36f90188dd0a1a961c99b2bc825b627 (diff) | |
download | px4-firmware-2a2655f8e0dc040d62c3c6d19bc298fc0ebb3f64.tar.gz px4-firmware-2a2655f8e0dc040d62c3c6d19bc298fc0ebb3f64.tar.bz2 px4-firmware-2a2655f8e0dc040d62c3c6d19bc298fc0ebb3f64.zip |
Use realine instead of fgets in several other places
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4357 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/nshlib')
-rw-r--r-- | apps/nshlib/README.txt | 8 | ||||
-rw-r--r-- | apps/nshlib/nsh_serial.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt index fad1ac104..fbdf9178a 100644 --- a/apps/nshlib/README.txt +++ b/apps/nshlib/README.txt @@ -1047,3 +1047,11 @@ Common Problems Make sure that the polled console is disabled in the OS configuration file, .config. That file should have CONFIG_DEV_LOWCONSOLE=n for NSH over serial. + + Problem: + The function 'readline' is undefined. + Usual Cause: + The following is missing from your appconfig file: + + CONFIGURED_APPS += system/readline + diff --git a/apps/nshlib/nsh_serial.c b/apps/nshlib/nsh_serial.c index 72004dd7f..57cb1b1c1 100644 --- a/apps/nshlib/nsh_serial.c +++ b/apps/nshlib/nsh_serial.c @@ -525,7 +525,7 @@ int nsh_consolemain(int argc, char *argv[]) else { - fprintf(pstate->ss_outstream, g_fmtcmdfailed, "readline", NSH_ERRNO); + fprintf(pstate->ss_outstream, g_fmtcmdfailed, "readline", NSH_ERRNO_OF(-ret)); return 1; } } |