diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-04 22:38:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-04 22:38:45 +0000 |
commit | 27654586d00c4fb566ce1f218d52bd1f0282a6cd (patch) | |
tree | 8081c21f09fa32ac906c1b0a07b51c85d4c0b4ea /apps | |
parent | 935109930f10485e622386010fe03e0ef0e34497 (diff) | |
download | nuttx-27654586d00c4fb566ce1f218d52bd1f0282a6cd.tar.gz nuttx-27654586d00c4fb566ce1f218d52bd1f0282a6cd.tar.bz2 nuttx-27654586d00c4fb566ce1f218d52bd1f0282a6cd.zip |
Correct several errors in STM32 serial port configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3744 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nshlib/README.txt | 6 | ||||
-rw-r--r-- | apps/nshlib/nsh_serial.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt index f64f39cf9..a678824e3 100644 --- a/apps/nshlib/README.txt +++ b/apps/nshlib/README.txt @@ -901,6 +901,12 @@ NSH-Specific Configuration Settings the system console is used to provide debug output. Default: stdin and stdout (probably "/dev/console") + NOTE: When any other device other than /dev/console is used + for a user interface, (1) linefeeds (\n) will not be expanded to + carriage return / linefeeds (\r\n). You will need to set + your terminal program to account for this. And (2) input is + not automatically echoed so you will have to turn local echo on. + * CONFIG_NSH_TELNET If CONFIG_NSH_TELNET is set to 'y', then a TELENET server front-end is selected. When this option is provided, diff --git a/apps/nshlib/nsh_serial.c b/apps/nshlib/nsh_serial.c index 29e60d9e3..ccb25477d 100644 --- a/apps/nshlib/nsh_serial.c +++ b/apps/nshlib/nsh_serial.c @@ -476,7 +476,7 @@ int nsh_consolemain(int argc, char *argv[]) /* Present a greeting */ - fprintf(pstate->ss_outstream, g_nshgreeting); + fputs(g_nshgreeting, pstate->ss_outstream); fflush(pstate->ss_outstream); /* Execute the startup script */ |