fix code style if trivial one line difference

This commit is contained in:
Daniel Agar
2015-03-19 23:49:36 +01:00
committed by Lorenz Meier
parent c147424fe7
commit c2abb0f82a
37 changed files with 38 additions and 33 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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); //
+1 -1
View File
@@ -52,5 +52,5 @@ __EXPORT int usb_connected_main(int argc, char *argv[]);
int
usb_connected_main(int argc, char *argv[])
{
return stm32_gpioread(GPIO_OTGFS_VBUS) ? 0:1;
return stm32_gpioread(GPIO_OTGFS_VBUS) ? 0 : 1;
}