Fix tests and re-introduce tests into build

Code style fix
This commit is contained in:
Lorenz Meier
2016-09-27 11:56:49 +02:00
committed by Lorenz Meier
parent 1909f2b02f
commit cf671b5134
28 changed files with 48 additions and 78 deletions
+3 -3
View File
@@ -49,7 +49,7 @@
#include <px4_adc.h>
#include "tests.h"
#include "tests_main.h"
#include <drivers/drv_gpio.h>
@@ -96,7 +96,7 @@ int test_gpio(int argc, char *argv[])
int fd = px4_open(PX4IO_DEVICE_PATH, 0);
if (fd < 0) {
printf("GPIO: open fail\n");
PX4_ERR("GPIO: open fail");
return ERROR;
}
@@ -111,7 +111,7 @@ int test_gpio(int argc, char *argv[])
px4_ioctl(fd, GPIO_RESET, ~0);
px4_close(fd);
printf("\t GPIO test successful.\n");
PX4_INFO("GPIO test successful.");
#endif