Fix up ADC tests command to read all channels at once

This commit is contained in:
Lorenz Meier 2014-03-17 16:54:39 +01:00
parent fd8cae19bd
commit 4e6e40e5d8
1 changed files with 2 additions and 2 deletions

View File

@ -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));