mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 22:53:35 +08:00
Fix tests and re-introduce tests into build
Code style fix
This commit is contained in:
committed by
Lorenz Meier
parent
1909f2b02f
commit
cf671b5134
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user