From 21850b97f9713421ae1b45ed68595824ec5eb402 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 30 Oct 2014 16:33:40 -0600 Subject: Costmetic changes -- spacing, comments. --- apps/examples/serialblaster/serialblaster_main.c | 2 +- apps/examples/serialrx/serialrx_main.c | 2 +- apps/examples/serloop/serloop_main.c | 2 ++ nuttx/arch/arm/src/sam34/sam_serial.c | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/examples/serialblaster/serialblaster_main.c b/apps/examples/serialblaster/serialblaster_main.c index e3e71a4df..7ca5ebe8a 100644 --- a/apps/examples/serialblaster/serialblaster_main.c +++ b/apps/examples/serialblaster/serialblaster_main.c @@ -64,7 +64,7 @@ static const char s[] = "abcdefghijklmnopqrstuvwxyz"; ****************************************************************************/ /**************************************************************************** - * serloop_main + * serialblaster_main ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL diff --git a/apps/examples/serialrx/serialrx_main.c b/apps/examples/serialrx/serialrx_main.c index 1a8279694..4fe60929f 100644 --- a/apps/examples/serialrx/serialrx_main.c +++ b/apps/examples/serialrx/serialrx_main.c @@ -66,7 +66,7 @@ static int count = 0; ****************************************************************************/ /**************************************************************************** - * serloop_main + * serialrx_main ****************************************************************************/ #ifdef CONFIG_BUILD_KERNEL diff --git a/apps/examples/serloop/serloop_main.c b/apps/examples/serloop/serloop_main.c index 7fad24501..f573a4c7c 100644 --- a/apps/examples/serloop/serloop_main.c +++ b/apps/examples/serloop/serloop_main.c @@ -79,6 +79,7 @@ int serloop_main(int argc, char *argv[]) { ch = '.'; } + putchar(ch); } #else @@ -96,6 +97,7 @@ int serloop_main(int argc, char *argv[]) { ch = '.'; } + ret = write(1, &ch, 1); } #endif diff --git a/nuttx/arch/arm/src/sam34/sam_serial.c b/nuttx/arch/arm/src/sam34/sam_serial.c index 01970b737..4395de517 100644 --- a/nuttx/arch/arm/src/sam34/sam_serial.c +++ b/nuttx/arch/arm/src/sam34/sam_serial.c @@ -1178,7 +1178,6 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) #if defined(CONFIG_SERIAL_IFLOWCONTROL) || defined(CONFIG_SERIAL_OFLOWCONTROL) priv->flowc = flowc; #endif - /* effect the changes immediately - note that we do not * implement TCSADRAIN / TCSAFLUSH */ -- cgit v1.2.3