diff options
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; } } |