diff options
Diffstat (limited to 'nuttx/configs/us7032evb1')
-rw-r--r-- | nuttx/configs/us7032evb1/shterm/shterm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/us7032evb1/shterm/shterm.c b/nuttx/configs/us7032evb1/shterm/shterm.c index f9ff2994aa..361f134ffb 100644 --- a/nuttx/configs/us7032evb1/shterm/shterm.c +++ b/nuttx/configs/us7032evb1/shterm/shterm.c @@ -110,6 +110,7 @@ static void putconsole(char ch) { (void)putc(ch, g_logstream); } + (void)putchar(ch); } @@ -139,6 +140,7 @@ static void printconsole(const char *fmt, ...) { (void)vfprintf(g_logstream, fmt, ap); } + (void)vprintf(fmt, ap); va_end(ap); } @@ -435,7 +437,7 @@ static void close_tty(void) (void)close(g_fd); } - if (g_logstream >= 0) + if (g_logstream) { (void)fclose(g_logstream); } @@ -717,7 +719,7 @@ int main(int argc, char **argv, char **envp) { sendfile(g_fd, filename, 0); } - else if (ch1 == 'v' || ch1 == 'v') + else if (ch1 == 'v' || ch1 == 'V') { sendfile(g_fd, filename, 1); } |