aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-03-17 16:54:39 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-17 16:54:39 +0100
commit4e6e40e5d850f737b25d657630ac89ad1d54e67c (patch)
tree970bc67f76a054b6d6560042981fa6f2d5ad9d94 /src/systemcmds
parentfd8cae19bdb4ba5e97c810f266f78af1461b51b7 (diff)
downloadpx4-firmware-4e6e40e5d850f737b25d657630ac89ad1d54e67c.tar.gz
px4-firmware-4e6e40e5d850f737b25d657630ac89ad1d54e67c.tar.bz2
px4-firmware-4e6e40e5d850f737b25d657630ac89ad1d54e67c.zip
Fix up ADC tests command to read all channels at once
Diffstat (limited to 'src/systemcmds')
-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 030ac6e23..7302f63cc 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 eight channels */
- struct adc_msg_s data[8];
+ /* make space for a maximum of ten channels */
+ struct adc_msg_s data[10];
/* read all channels available */
ssize_t count = read(fd, data, sizeof(data));