aboutsummaryrefslogtreecommitdiff
path: root/apps/px4/tests/test_adc.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-18 16:46:05 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-18 16:46:05 +0100
commit663ca58063a281d23dbc92a6fbd19011c3fbde41 (patch)
tree5a2e9f58a8f41db94ef221e12acead09c9828233 /apps/px4/tests/test_adc.c
parent104d5aa3654545b354f25750d3980181da8f6a0b (diff)
parent520a2b417410bed7db6f08a3a69f3bcccc55910b (diff)
downloadpx4-firmware-663ca58063a281d23dbc92a6fbd19011c3fbde41.tar.gz
px4-firmware-663ca58063a281d23dbc92a6fbd19011c3fbde41.tar.bz2
px4-firmware-663ca58063a281d23dbc92a6fbd19011c3fbde41.zip
Merge branch 'master' of github.com:PX4/Firmware
Diffstat (limited to 'apps/px4/tests/test_adc.c')
-rw-r--r--apps/px4/tests/test_adc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/px4/tests/test_adc.c b/apps/px4/tests/test_adc.c
index 4c021303f..030ac6e23 100644
--- a/apps/px4/tests/test_adc.c
+++ b/apps/px4/tests/test_adc.c
@@ -60,8 +60,10 @@ int test_adc(int argc, char *argv[])
{
int fd = open(ADC_DEVICE_PATH, O_RDONLY);
- if (fd < 0)
- err(1, "can't open ADC device");
+ if (fd < 0) {
+ warnx("ERROR: can't open ADC device");
+ return 1;
+ }
for (unsigned i = 0; i < 5; i++) {
/* make space for a maximum of eight channels */
@@ -82,7 +84,7 @@ int test_adc(int argc, char *argv[])
usleep(150000);
}
- message("\t ADC test successful.\n");
+ warnx("\t ADC test successful.\n");
errout_with_dev: