summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-01-02 17:50:53 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-01-02 17:50:53 +0100
commitb4a58caddb56ea3b6a6f750eed0c0c77a008e9c4 (patch)
treec3b98c1b85378ec9c4063407603b756808535e17
parentb9d19cdef62210683d27e69bae22201ff3aa23d7 (diff)
downloadnuttx-b4a58caddb56ea3b6a6f750eed0c0c77a008e9c4.tar.gz
nuttx-b4a58caddb56ea3b6a6f750eed0c0c77a008e9c4.tar.bz2
nuttx-b4a58caddb56ea3b6a6f750eed0c0c77a008e9c4.zip
small whitespace correction
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_serial.c b/nuttx/arch/arm/src/stm32/stm32_serial.c
index 6b56165db..e2a0da226 100644
--- a/nuttx/arch/arm/src/stm32/stm32_serial.c
+++ b/nuttx/arch/arm/src/stm32/stm32_serial.c
@@ -1741,6 +1741,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
/* Change the TX port to be open-drain/push-pull and enable/disable
* half-duplex mode.
*/
+
uint32_t cr = up_serialin(priv, STM32_USART_CR3_OFFSET);
#if defined(CONFIG_STM32_STM32F10XX)
if (arg == SER_SINGLEWIRE_ENABLED)
@@ -1769,7 +1770,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
up_serialout(priv, STM32_USART_CR3_OFFSET, cr);
}
- break;
+ break;
#endif
#ifdef CONFIG_SERIAL_TERMIOS