aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/tests/test_adc.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-03 13:47:29 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-09 22:56:22 +0100
commitac155b0faca7e9c378e9059d318e1f5151c61561 (patch)
tree98767b56d567fddeded86199b8ad4e47b2fa12d5 /src/systemcmds/tests/test_adc.c
parent2f4d820063b7712a3acae8f5336439ebbd43fe80 (diff)
downloadpx4-firmware-ac155b0faca7e9c378e9059d318e1f5151c61561.tar.gz
px4-firmware-ac155b0faca7e9c378e9059d318e1f5151c61561.tar.bz2
px4-firmware-ac155b0faca7e9c378e9059d318e1f5151c61561.zip
System cmds: Move to 0 based index
Diffstat (limited to 'src/systemcmds/tests/test_adc.c')
-rw-r--r--src/systemcmds/tests/test_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_adc.c b/src/systemcmds/tests/test_adc.c
index 03391b851..9f6905239 100644
--- a/src/systemcmds/tests/test_adc.c
+++ b/src/systemcmds/tests/test_adc.c
@@ -58,7 +58,7 @@
int test_adc(int argc, char *argv[])
{
- int fd = open(ADC_DEVICE_PATH, O_RDONLY);
+ int fd = open(ADC0_DEVICE_PATH, O_RDONLY);
if (fd < 0) {
warnx("ERROR: can't open ADC device");