diff options
author | Daniel Agar <daniel@agar.ca> | 2015-03-02 14:36:04 -0500 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-03-19 23:49:36 +0100 |
commit | c2abb0f82ac23aab3295522ade4c255323191931 (patch) | |
tree | a87146edb8736e8f447e97eb6624b909aefe57c2 /src/systemcmds/tests | |
parent | c147424fe735d92c5271ba3b5bc830bb33fb6097 (diff) | |
download | px4-firmware-c2abb0f82ac23aab3295522ade4c255323191931.tar.gz px4-firmware-c2abb0f82ac23aab3295522ade4c255323191931.tar.bz2 px4-firmware-c2abb0f82ac23aab3295522ade4c255323191931.zip |
fix code style if trivial one line difference
Diffstat (limited to 'src/systemcmds/tests')
-rw-r--r-- | src/systemcmds/tests/test_jig_voltages.c | 2 | ||||
-rw-r--r-- | src/systemcmds/tests/test_rc.c | 2 | ||||
-rw-r--r-- | src/systemcmds/tests/test_uart_send.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/systemcmds/tests/test_jig_voltages.c b/src/systemcmds/tests/test_jig_voltages.c index 98a105cb3..554125302 100644 --- a/src/systemcmds/tests/test_jig_voltages.c +++ b/src/systemcmds/tests/test_jig_voltages.c @@ -162,7 +162,7 @@ int test_jig_voltages(int argc, char *argv[]) errout_with_dev: - if (fd != 0) close(fd); + if (fd != 0) { close(fd); } return ret; } diff --git a/src/systemcmds/tests/test_rc.c b/src/systemcmds/tests/test_rc.c index c9f9ef439..3a8144077 100644 --- a/src/systemcmds/tests/test_rc.c +++ b/src/systemcmds/tests/test_rc.c @@ -126,7 +126,7 @@ int test_rc(int argc, char *argv[]) warnx("TIMEOUT, less than 10 Hz updates"); (void)close(_rc_sub); return ERROR; - } + } } else { /* key pressed, bye bye */ diff --git a/src/systemcmds/tests/test_uart_send.c b/src/systemcmds/tests/test_uart_send.c index 7e1e8d307..70a9c719e 100644 --- a/src/systemcmds/tests/test_uart_send.c +++ b/src/systemcmds/tests/test_uart_send.c @@ -95,7 +95,7 @@ int test_uart_send(int argc, char *argv[]) /* input handling */ char *uart_name = "/dev/ttyS3"; - if (argc > 1) uart_name = argv[1]; + if (argc > 1) { uart_name = argv[1]; } /* assuming NuttShell is on UART1 (/dev/ttyS0) */ int test_uart = open(uart_name, O_RDWR | O_NONBLOCK | O_NOCTTY); // |