aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/tests
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-03-17 17:02:10 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-17 17:02:10 +0100
commitd940bdf7f64268d46503cf4b0b996bec3036603e (patch)
tree9f366ccbbf06d566140f733ff20261e54ce6b727 /src/systemcmds/tests
parent4e6e40e5d850f737b25d657630ac89ad1d54e67c (diff)
downloadpx4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.tar.gz
px4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.tar.bz2
px4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.zip
Consistently making space for a maximum of 12 channels, 10 channels (including reference / temperature) are used / available right now
Diffstat (limited to 'src/systemcmds/tests')
-rw-r--r--src/systemcmds/tests/test_adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/tests/test_adc.c b/src/systemcmds/tests/test_adc.c
index 7302f63cc..03391b851 100644
--- a/src/systemcmds/tests/test_adc.c
+++ b/src/systemcmds/tests/test_adc.c
@@ -66,8 +66,8 @@ int test_adc(int argc, char *argv[])
}
for (unsigned i = 0; i < 5; i++) {
- /* make space for a maximum of ten channels */
- struct adc_msg_s data[10];
+ /* make space for a maximum of twelve channels */
+ struct adc_msg_s data[12];
/* read all channels available */
ssize_t count = read(fd, data, sizeof(data));