Consistently making space for a maximum of 12 channels, 10 channels (including reference / temperature) are used / available right now

This commit is contained in:
Lorenz Meier
2014-03-17 17:02:10 +01:00
parent 4e6e40e5d8
commit d940bdf7f6
4 changed files with 7 additions and 7 deletions
+2 -2
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 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));