forked from Archive/PX4-Autopilot
Fix up ADC tests command to read all channels at once
This commit is contained in:
parent
fd8cae19bd
commit
4e6e40e5d8
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue